summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Liguori2013-02-11 15:10:39 +0100
committerAnthony Liguori2013-02-11 15:10:39 +0100
commit2da2e52dce73c5e3a916bcc8e86451ed64f557d8 (patch)
treefe6af593ec4ff9ab116a7c5caa5e9ace9f04ecc5
parentUpdate OpenBIOS images (diff)
parenttests/test-string-input-visitor: Handle errors provoked by fuzz test (diff)
downloadqemu-2da2e52dce73c5e3a916bcc8e86451ed64f557d8.tar.gz
qemu-2da2e52dce73c5e3a916bcc8e86451ed64f557d8.tar.xz
qemu-2da2e52dce73c5e3a916bcc8e86451ed64f557d8.zip
Merge remote-tracking branch 'luiz/queue/qmp' into staging
# By Peter Maydell # Via Luiz Capitulino * luiz/queue/qmp: tests/test-string-input-visitor: Handle errors provoked by fuzz test
-rw-r--r--tests/test-string-input-visitor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-string-input-visitor.c b/tests/test-string-input-visitor.c
index f6b0093554..5989f8118e 100644
--- a/tests/test-string-input-visitor.c
+++ b/tests/test-string-input-visitor.c
@@ -174,7 +174,6 @@ static void test_visitor_in_fuzz(TestInputVisitorData *data,
double nres;
char *sres;
EnumOne eres;
- Error *errp = NULL;
Visitor *v;
unsigned int i;
char buf[10000];
@@ -193,21 +192,22 @@ static void test_visitor_in_fuzz(TestInputVisitorData *data,
}
v = visitor_input_test_init(data, buf);
- visit_type_int(v, &ires, NULL, &errp);
+ visit_type_int(v, &ires, NULL, NULL);
v = visitor_input_test_init(data, buf);
- visit_type_bool(v, &bres, NULL, &errp);
+ visit_type_bool(v, &bres, NULL, NULL);
visitor_input_teardown(data, NULL);
v = visitor_input_test_init(data, buf);
- visit_type_number(v, &nres, NULL, &errp);
+ visit_type_number(v, &nres, NULL, NULL);
v = visitor_input_test_init(data, buf);
- visit_type_str(v, &sres, NULL, &errp);
+ sres = NULL;
+ visit_type_str(v, &sres, NULL, NULL);
g_free(sres);
v = visitor_input_test_init(data, buf);
- visit_type_EnumOne(v, &eres, NULL, &errp);
+ visit_type_EnumOne(v, &eres, NULL, NULL);
visitor_input_teardown(data, NULL);
}
}