From 9e9eace89e2a8180f0a5fd312bb87e53e6f2004b Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 20 Mar 2012 11:22:49 +0100 Subject: 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 Signed-off-by: Laszlo Ersek Signed-off-by: Luiz Capitulino --- qapi-schema-test.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qapi-schema-test.json') diff --git a/qapi-schema-test.json b/qapi-schema-test.json index 8c7f9f7..9eae350 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', -- cgit v1.1