[LTP] [PATCH 7/9] metadata: Add test for missing blank line in list

Petr Vorel
2024-01-04T20:47:41Z

This is a test for a fix in previous commit.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
metadata/tests/list_missing_blank_line.c | 14 ++++++++++++++
metadata/tests/list_missing_blank_line.c.json | 18 ++++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 metadata/tests/list_missing_blank_line.c
create mode 100644 metadata/tests/list_missing_blank_line.c.json

diff --git a/metadata/tests/list_missing_blank_line.c b/metadata/tests/list_missing_blank_line.c
new file mode 100644
index 000000000..9d88d6aac
--- /dev/null
+++ b/metadata/tests/list_missing_blank_line.c
@@ -0,0 +1,14 @@
+/*\
+ * [Description]
+ *
+ * Some description.
+ *
+ * My BROKEN list (missing blank line before first item):
+ * * foo
+ * * bar
+ *
+ * My CORRECT list (with extra blank line before first item):
+ *
+ * * foo2
+ * * bar2
+ */
diff --git a/metadata/tests/list_missing_blank_line.c.json b/metadata/tests/list_missing_blank_line.c.json
new file mode 100644
index 000000000..6ad326fb6
--- /dev/null
+++ b/metadata/tests/list_missing_blank_line.c.json
@@ -0,0 +1,18 @@
+ "list_missing_blank_line": {
+ "doc": [
+ "[Description]",
+ "",
+ "Some description.",
+ "",
+ "My BROKEN list (missing blank line before first item):",
+ "",
+ "* foo",
+ "* bar",
+ "",
+ "My CORRECT list (with extra blank line before first item):",
+ "",
+ "* foo2",
+ "* bar2"
+ ],
+ "fname": "list_missing_blank_line.c"
+ }
\ No newline at end of file
--
2.43.0