mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
qapi: Add tests of redefined expressions
Demonstrate that the qapi generator doesn't deal very well with redefined expressions. At the parse level, they are silently accepted; and while the testsuite just stops at parsing, I've further tested that many of them cause generator crashes or invalid C code if they were appended to qapi-schema-test.json. A later patch will tighten things up and adjust the testsuite to match. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
0545f6b887
commit
cfdd5bcad5
25 changed files with 45 additions and 0 deletions
4
tests/qapi-schema/redefined-command.out
Normal file
4
tests/qapi-schema/redefined-command.out
Normal file
|
@ -0,0 +1,4 @@
|
|||
[OrderedDict([('command', 'foo'), ('data', OrderedDict([('one', 'str')]))]),
|
||||
OrderedDict([('command', 'foo'), ('data', OrderedDict([('*two', 'str')]))])]
|
||||
[]
|
||||
[]
|
Loading…
Add table
Add a link
Reference in a new issue