summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/enum-union-clash.out
diff options
context:
space:
mode:
authorEric Blake2015-05-04 17:05:03 +0200
committerMarkus Armbruster2015-05-05 18:39:00 +0200
commitad11dbb93752ffd4bd1d5f31da7e2d9c40a68e8a (patch)
tree92f68f5ecf754fbb244cb4a258e56c1f2fcc5957 /tests/qapi-schema/enum-union-clash.out
parentqapi: Require ASCII in schema (diff)
downloadqemu-ad11dbb93752ffd4bd1d5f31da7e2d9c40a68e8a.tar.gz
qemu-ad11dbb93752ffd4bd1d5f31da7e2d9c40a68e8a.tar.xz
qemu-ad11dbb93752ffd4bd1d5f31da7e2d9c40a68e8a.zip
qapi: Add some enum tests
Demonstrate that the qapi generator doesn't deal well with enums that aren't up to par. Later patches will update the expected results as the generator is made stricter. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/enum-union-clash.out')
-rw-r--r--tests/qapi-schema/enum-union-clash.out5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qapi-schema/enum-union-clash.out b/tests/qapi-schema/enum-union-clash.out
new file mode 100644
index 0000000000..d45f5e8a69
--- /dev/null
+++ b/tests/qapi-schema/enum-union-clash.out
@@ -0,0 +1,5 @@
+[OrderedDict([('enum', 'UnionKind'), ('data', ['oops'])]),
+ OrderedDict([('union', 'Union'), ('data', OrderedDict([('a', 'int')]))])]
+[{'enum_name': 'UnionKind', 'enum_values': ['oops']},
+ {'enum_name': 'UnionKind', 'enum_values': None}]
+[]