aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/doc-bad-section.json
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2017-10-02 16:13:35 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-12-20 19:18:33 +0100
commitcfa438ff53937c78c9a0e50b4b774ea5a6430710 (patch)
tree17e031b19318698c4121d0ec399bdbd6f5d6aff8 /tests/qapi-schema/doc-bad-section.json
parent64d6033b203b32f02d0986220af5dc3cd1301ba6 (diff)
tests/qapi-schema/doc-bad-section: New, factored out of doc-good
A negative test case crept into doc-good.json: invalid use of section markup we currently fail to reject. Move this into its own doc-bad-section.json. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20171002141341.24616-6-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'tests/qapi-schema/doc-bad-section.json')
-rw-r--r--tests/qapi-schema/doc-bad-section.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/qapi-schema/doc-bad-section.json b/tests/qapi-schema/doc-bad-section.json
new file mode 100644
index 0000000000..560df4b087
--- /dev/null
+++ b/tests/qapi-schema/doc-bad-section.json
@@ -0,0 +1,11 @@
+# = section within an expression comment
+# BUG: not rejected
+
+##
+# @Enum:
+# == Produces *invalid* texinfo
+# @one: The _one_ {and only}
+#
+# @two is undocumented
+##
+{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }