diff options
| author | Markus Armbruster | 2019-09-14 17:34:58 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2019-09-24 14:07:23 +0200 |
| commit | c2c7065e1752a3be1b437d1ea359cde35d28ee3b (patch) | |
| tree | 309fd28ba39f32c26ebaaf9ca0b06852a5c67f2d /tests/qapi-schema/bad-if-list.json | |
| parent | qapi: Fix broken discriminator error messages (diff) | |
| download | qemu-c2c7065e1752a3be1b437d1ea359cde35d28ee3b.tar.gz qemu-c2c7065e1752a3be1b437d1ea359cde35d28ee3b.tar.xz qemu-c2c7065e1752a3be1b437d1ea359cde35d28ee3b.zip | |
qapi: Reject blank 'if' conditions in addition to empty ones
"'if': 'COND'" generates "#if COND". We reject empty COND because it
won't compile. Blank COND won't compile any better, so reject that,
too.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-12-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qapi-schema/bad-if-list.json')
| -rw-r--r-- | tests/qapi-schema/bad-if-list.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/bad-if-list.json b/tests/qapi-schema/bad-if-list.json index 49ced9b9ca..ea3d95bb6b 100644 --- a/tests/qapi-schema/bad-if-list.json +++ b/tests/qapi-schema/bad-if-list.json @@ -1,3 +1,3 @@ # check invalid 'if' content { 'struct': 'TestIfStruct', 'data': { 'foo': 'int' }, - 'if': ['foo', ''] } + 'if': ['foo', ' '] } |
