summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/union-clash-type.json
diff options
context:
space:
mode:
authorEric Blake2015-11-18 09:52:49 +0100
committerMarkus Armbruster2015-12-17 08:21:27 +0100
commit61a946611b77b05936c60775eaaef87b65ec9f09 (patch)
tree8c33aea7f0f66bf15778ae702586fd18b698a742 /tests/qapi-schema/union-clash-type.json
parentqapi: Hoist tag collision check to Variants.check() (diff)
downloadqemu-61a946611b77b05936c60775eaaef87b65ec9f09.tar.gz
qemu-61a946611b77b05936c60775eaaef87b65ec9f09.tar.xz
qemu-61a946611b77b05936c60775eaaef87b65ec9f09.zip
qapi: Remove outdated tests related to QMP/branch collisions
Now that branches are in a separate C namespace, we can remove the restrictions in the parser that claim a branch name would collide with QMP, and delete the negative tests that are no longer problematic. A separate patch can then add positive tests to qapi-schema-test to test that any corner cases will compile correctly. This reverts the scripts/qapi.py portion of commit 7b2a5c2, now that the assertions that it plugged are no longer possible. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1447836791-369-15-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/union-clash-type.json')
-rw-r--r--tests/qapi-schema/union-clash-type.json9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/qapi-schema/union-clash-type.json b/tests/qapi-schema/union-clash-type.json
deleted file mode 100644
index cfc256b04d..0000000000
--- a/tests/qapi-schema/union-clash-type.json
+++ /dev/null
@@ -1,9 +0,0 @@
-# Union branch 'type'
-# Reject this, because we would have a clash in generated C, between the
-# simple union's implicit tag member 'kind' and the branch name 'kind'
-# within the union.
-# TODO: Even when the generated C is switched to use 'type' rather than
-# 'kind', to match the QMP spelling, the collision should still be detected.
-# Or, we could munge the branch name to allow compilation.
-{ 'union': 'TestUnion',
- 'data': { 'kind': 'int', 'type': 'str' } }