summaryrefslogtreecommitdiff
path: root/qapi-schema-test.json
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-03-20 11:22:49 +0100
committerLuiz Capitulino <lcapitulino@redhat.com>2012-03-27 09:11:00 -0300
commit9e9eace89e2a8180f0a5fd312bb87e53e6f2004b (patch)
tree56377c4794bb8296d8e87b615ecaf31489f3c826 /qapi-schema-test.json
parentf24582d6ad8a080e008974c000bf0ae635d036ac (diff)
qapi: add struct-errors test case to test-qmp-output-visitor
This test case verifies that invalid native enums are caught, and causes qapi to tear down the QObject tree under construction, exercising the previous patch. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema-test.json')
-rw-r--r--qapi-schema-test.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/qapi-schema-test.json b/qapi-schema-test.json
index 8c7f9f79f4..9eae3501d7 100644
--- a/qapi-schema-test.json
+++ b/qapi-schema-test.json
@@ -8,7 +8,7 @@
# for testing nested structs
{ 'type': 'UserDefOne',
- 'data': { 'integer': 'int', 'string': 'str' } }
+ 'data': { 'integer': 'int', 'string': 'str', '*enum1': 'EnumOne' } }
{ 'type': 'UserDefTwo',
'data': { 'string': 'str',