mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
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>
This commit is contained in:
parent
91f9816da4
commit
10689e36eb
13 changed files with 17 additions and 0 deletions
3
tests/qapi-schema/struct-data-invalid.json
Normal file
3
tests/qapi-schema/struct-data-invalid.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
# FIXME error "should be a dictionary" is misleading, type name is also fine
|
||||
{ 'struct': 'foo',
|
||||
'data': false }
|
Loading…
Add table
Add a link
Reference in a new issue