diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-09-14 17:34:51 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-09-24 14:07:22 +0200 |
commit | 31248b985e30801c2676ff448291c2b3d02a1b8c (patch) | |
tree | 0ae34109b2807f6733654bced652c2d0f8669f22 /tests/qapi-schema/flat-union-invalid-discriminator.json | |
parent | cd346bdc46eb2046d7f744135a7e3d740490d166 (diff) | |
download | qemu-31248b985e30801c2676ff448291c2b3d02a1b8c.zip |
tests/qapi-schema: Demonstrate broken discriminator errors
When the union definition's base is an object, some error messages
show it as an OrderedDict. Oops. Mark FIXME.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-5-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qapi-schema/flat-union-invalid-discriminator.json')
-rw-r--r-- | tests/qapi-schema/flat-union-invalid-discriminator.json | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/qapi-schema/flat-union-invalid-discriminator.json b/tests/qapi-schema/flat-union-invalid-discriminator.json index 48b94c3a4d..de86cf0760 100644 --- a/tests/qapi-schema/flat-union-invalid-discriminator.json +++ b/tests/qapi-schema/flat-union-invalid-discriminator.json @@ -1,9 +1,7 @@ +# FIXME error message shows base as OrderedDict { 'enum': 'TestEnum', 'data': [ 'value1', 'value2' ] } -{ 'struct': 'TestBase', - 'data': { 'enum1': 'TestEnum' } } - { 'struct': 'TestTypeA', 'data': { 'string': 'str' } } @@ -11,7 +9,7 @@ 'data': { 'integer': 'int' } } { 'union': 'TestUnion', - 'base': 'TestBase', + 'base': { 'enum1': 'TestEnum' }, 'discriminator': 'enum_wrong', 'data': { 'value1': 'TestTypeA', 'value2': 'TestTypeB' } } |