summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema
diff options
context:
space:
mode:
authorMarkus Armbruster2019-09-27 15:46:30 +0200
committerMarkus Armbruster2019-09-28 17:17:19 +0200
commit4ebda5abdb9704a3bde299209f8fcaf034079095 (patch)
tree40cbc1a678c54863ce2d59e61a7de038fe8773d8 /tests/qapi-schema
parentqapi: Move context-sensitive checking to the proper place (diff)
downloadqemu-4ebda5abdb9704a3bde299209f8fcaf034079095.tar.gz
qemu-4ebda5abdb9704a3bde299209f8fcaf034079095.tar.xz
qemu-4ebda5abdb9704a3bde299209f8fcaf034079095.zip
qapi: Move context-free checking to the proper place
QAPISchemaCommand.check() and QAPISchemaEvent().check() check 'data' is present when 'boxed': true. That's context-free. Move to check_command() and check_event(). Tweak the error message while there. check_exprs() & friends now check exactly what qapi-code-gen.txt calls the second layer of syntax. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190927134639.4284-18-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema')
-rw-r--r--tests/qapi-schema/event-boxed-empty.err2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/event-boxed-empty.err b/tests/qapi-schema/event-boxed-empty.err
index 9c691b7d97..931c10b036 100644
--- a/tests/qapi-schema/event-boxed-empty.err
+++ b/tests/qapi-schema/event-boxed-empty.err
@@ -1,2 +1,2 @@
tests/qapi-schema/event-boxed-empty.json: In event 'FOO':
-tests/qapi-schema/event-boxed-empty.json:2: use of 'boxed' requires 'data'
+tests/qapi-schema/event-boxed-empty.json:2: 'boxed': true requires 'data'