diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-09-14 17:34:48 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-09-24 14:07:22 +0200 |
commit | 137cf6a9be01234e0ef42ced2af8f00d009b3496 (patch) | |
tree | 1821c83656e147ec93079d57959610de92ae25ce /tests | |
parent | 8d40738d2f60a70aaece8d990a8b95af04e085a2 (diff) | |
download | qemu-137cf6a9be01234e0ef42ced2af8f00d009b3496.zip |
tests/qapi-schema: Cover unknown pragma
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-2-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.include | 1 | ||||
-rw-r--r-- | tests/qapi-schema/pragma-unknown.err | 1 | ||||
-rw-r--r-- | tests/qapi-schema/pragma-unknown.exit | 1 | ||||
-rw-r--r-- | tests/qapi-schema/pragma-unknown.json | 1 | ||||
-rw-r--r-- | tests/qapi-schema/pragma-unknown.out | 0 |
5 files changed, 4 insertions, 0 deletions
diff --git a/tests/Makefile.include b/tests/Makefile.include index 2c3adb1530..089cc3ea95 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -427,6 +427,7 @@ qapi-schema += pragma-doc-required-crap.json qapi-schema += pragma-extra-junk.json qapi-schema += pragma-name-case-whitelist-crap.json qapi-schema += pragma-non-dict.json +qapi-schema += pragma-unknown.json qapi-schema += pragma-returns-whitelist-crap.json qapi-schema += qapi-schema-test.json qapi-schema += quoted-structural-chars.json diff --git a/tests/qapi-schema/pragma-unknown.err b/tests/qapi-schema/pragma-unknown.err new file mode 100644 index 0000000000..6ef2058316 --- /dev/null +++ b/tests/qapi-schema/pragma-unknown.err @@ -0,0 +1 @@ +tests/qapi-schema/pragma-unknown.json:1: Unknown pragma 'no-such-pragma' diff --git a/tests/qapi-schema/pragma-unknown.exit b/tests/qapi-schema/pragma-unknown.exit new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/tests/qapi-schema/pragma-unknown.exit @@ -0,0 +1 @@ +1 diff --git a/tests/qapi-schema/pragma-unknown.json b/tests/qapi-schema/pragma-unknown.json new file mode 100644 index 0000000000..c51bbbb53f --- /dev/null +++ b/tests/qapi-schema/pragma-unknown.json @@ -0,0 +1 @@ +{ 'pragma': { 'no-such-pragma': false } } diff --git a/tests/qapi-schema/pragma-unknown.out b/tests/qapi-schema/pragma-unknown.out new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/qapi-schema/pragma-unknown.out |