tests/qapi-schema: Cover non-string, non-dictionary members
commit10689e36eb99e99751497ac8cef2a946e9a3a850
authorMarkus Armbruster <armbru@redhat.com>
Mon, 31 Aug 2015 15:17:42 +0000 (31 17:17 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 4 Sep 2015 13:47:16 +0000 (4 15:47 +0200)
treea1fe458f07481ef6aabd3e2137eef38305c7fe79
parent91f9816da4d505d379753896f3f7b6abb910324b
tests/qapi-schema: Cover non-string, non-dictionary members

We always report "should be a dictionary" then.  This is misleading:
when allow_dict, it can be a dictionary or a type name string, else it
can only be a type name.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
13 files changed:
tests/Makefile
tests/qapi-schema/args-invalid.err [new file with mode: 0644]
tests/qapi-schema/args-invalid.exit [new file with mode: 0644]
tests/qapi-schema/args-invalid.json [new file with mode: 0644]
tests/qapi-schema/args-invalid.out [new file with mode: 0644]
tests/qapi-schema/struct-data-invalid.err [new file with mode: 0644]
tests/qapi-schema/struct-data-invalid.exit [new file with mode: 0644]
tests/qapi-schema/struct-data-invalid.json [new file with mode: 0644]
tests/qapi-schema/struct-data-invalid.out [new file with mode: 0644]
tests/qapi-schema/struct-member-invalid.err [new file with mode: 0644]
tests/qapi-schema/struct-member-invalid.exit [new file with mode: 0644]
tests/qapi-schema/struct-member-invalid.json [new file with mode: 0644]
tests/qapi-schema/struct-member-invalid.out [new file with mode: 0644]