From ad11dbb93752ffd4bd1d5f31da7e2d9c40a68e8a Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 4 May 2015 09:05:03 -0600 Subject: 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 Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- tests/qapi-schema/enum-clash-member.json | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/qapi-schema/enum-clash-member.json (limited to 'tests/qapi-schema/enum-clash-member.json') diff --git a/tests/qapi-schema/enum-clash-member.json b/tests/qapi-schema/enum-clash-member.json new file mode 100644 index 0000000000..99d442a978 --- /dev/null +++ b/tests/qapi-schema/enum-clash-member.json @@ -0,0 +1,2 @@ +# FIXME: we should reject enums where members will clash when mapped to C enum +{ 'enum': 'MyEnum', 'data': [ 'one', 'ONE' ] } -- cgit v1.2.3