diff options
author | Eric Blake <eblake@redhat.com> | 2015-05-04 09:05:16 -0600 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-05-05 18:39:01 +0200 |
commit | cfdd5bcad515a8371af59dba9625e31a6f6f733e (patch) | |
tree | 9f34ae56607396e9838ebc5b2c1f7468d2b92cb4 /tests/qapi-schema/redefined-command.out | |
parent | 0545f6b8874c28d97369f2c83e5077e0461d4f12 (diff) |
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>
Diffstat (limited to 'tests/qapi-schema/redefined-command.out')
-rw-r--r-- | tests/qapi-schema/redefined-command.out | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qapi-schema/redefined-command.out b/tests/qapi-schema/redefined-command.out new file mode 100644 index 0000000000..44ddba60d5 --- /dev/null +++ b/tests/qapi-schema/redefined-command.out @@ -0,0 +1,4 @@ +[OrderedDict([('command', 'foo'), ('data', OrderedDict([('one', 'str')]))]), + OrderedDict([('command', 'foo'), ('data', OrderedDict([('*two', 'str')]))])] +[] +[] |