diff options
author | Markus Armbruster <armbru@redhat.com> | 2021-09-08 06:54:27 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2021-09-08 15:30:10 +0200 |
commit | 71f03ef9f66b020d58acad5227e886102db41127 (patch) | |
tree | d910eb158c9f91270b4b4664e6b6b0fe76bf4304 /tests/qapi-schema/bad-if-not.json | |
parent | e2ff14a5740c2fe3714a56221792b6d74bc64c08 (diff) | |
download | qemu-71f03ef9f66b020d58acad5227e886102db41127.zip qemu-71f03ef9f66b020d58acad5227e886102db41127.tar.gz qemu-71f03ef9f66b020d58acad5227e886102db41127.tar.bz2 |
tests/qapi-schema: Cover 'not' condition with empty argument
We flag this, but the error message is bogus:
bad-if-not.json:2: 'if' condition [] of struct is useless
The next commit will fix it.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210908045428.2689093-5-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'tests/qapi-schema/bad-if-not.json')
-rw-r--r-- | tests/qapi-schema/bad-if-not.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qapi-schema/bad-if-not.json b/tests/qapi-schema/bad-if-not.json new file mode 100644 index 0000000..9fdaacc --- /dev/null +++ b/tests/qapi-schema/bad-if-not.json @@ -0,0 +1,3 @@ +# check 'if not' with empy argument +{ 'struct': 'TestIfStruct', 'data': { 'foo': 'int' }, + 'if': { 'not': '' } } |