aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/doc-empty-features.json
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2024-02-16 15:58:27 +0100
committerMarkus Armbruster <armbru@redhat.com>2024-02-26 10:43:56 +0100
commit0ba2915b92813ce1982563378c48b6d2ba9a71ca (patch)
treeedff5827ef9f07011912727142bd04f424700b10 /tests/qapi-schema/doc-empty-features.json
parentfc68b9ffc933a5c38c0b880629a7f543a4a9b06b (diff)
tests/qapi-schema: Cover 'Features:' not followed by descriptions
A 'Features:' line without any features is useless, but not an error now. However, a later commit will make it one, because that makes rejecting duplicate 'Features:' easier. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240216145841.2099240-4-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/qapi-schema/doc-empty-features.json')
-rw-r--r--tests/qapi-schema/doc-empty-features.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/qapi-schema/doc-empty-features.json b/tests/qapi-schema/doc-empty-features.json
new file mode 100644
index 0000000000..06f814e45d
--- /dev/null
+++ b/tests/qapi-schema/doc-empty-features.json
@@ -0,0 +1,10 @@
+# 'Features:' line not followed by feature descriptions
+
+##
+# @foo:
+#
+# Features:
+#
+# not a description
+##
+{ 'command': 'foo' }