mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
d9658d58e3
A command's 'data' must be a struct type, given either as a dictionary, or as struct type name. Existing test case data-int.json covers simple type 'int'. Add test cases for type names referring to union and alternate types. The latter is caught (good), but the former is not (bug). Events have the same problem, but since they get checked by the same code, we don't bother to duplicate the tests. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
5 lines
172 B
JSON
5 lines
172 B
JSON
# FIXME we should reject union arguments
|
|
# TODO should we support this?
|
|
{ 'union': 'Uni', 'data': { 'case1': 'int', 'case2': 'str' } }
|
|
{ 'command': 'oops', 'data': 'Uni' }
|