[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 11/24] test-qobject-input-visitor: Abort earlier o
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PULL v2 11/24] test-qobject-input-visitor: Abort earlier on bad test input |
Date: |
Mon, 6 Mar 2017 15:11:42 +0100 |
visitor_input_test_init_internal() parses test input with
qobject_from_jsonv(), and asserts it succeeds. Pass &error_abort for
good measure.
Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
Message-Id: <address@hidden>
---
tests/test-qobject-input-visitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-qobject-input-visitor.c
b/tests/test-qobject-input-visitor.c
index 36cc4b5..6eb48fe 100644
--- a/tests/test-qobject-input-visitor.c
+++ b/tests/test-qobject-input-visitor.c
@@ -51,7 +51,7 @@ static Visitor
*visitor_input_test_init_internal(TestInputVisitorData *data,
{
visitor_input_teardown(data, NULL);
- data->obj = qobject_from_jsonv(json_string, ap, NULL);
+ data->obj = qobject_from_jsonv(json_string, ap, &error_abort);
g_assert(data->obj);
if (keyval) {
--
2.7.4
- [Qemu-devel] [PULL v2 16/24] monitor: Assert qmp_schema_json[] is sane, (continued)
- [Qemu-devel] [PULL v2 16/24] monitor: Assert qmp_schema_json[] is sane, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 13/24] block: More detailed syntax error reporting for JSON filenames, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 08/24] qobject: Propagate parse errors through qobject_from_jsonv(), Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 06/24] qapi: Factor out common part of qobject input visitor creation, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 18/24] qapi: New parse_qapi_name(), Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 19/24] keyval: Restrict key components to valid QAPI names, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 10/24] qjson: Abort earlier on qobject_from_jsonf() misuse, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 09/24] libqtest: Fix qmp() & friends to abort on JSON parse errors, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 15/24] test-visitor-serialization: Pass &error_abort to qobject_from_json(), Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 12/24] qobject: Propagate parse errors through qobject_from_json(), Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 11/24] test-qobject-input-visitor: Abort earlier on bad test input,
Markus Armbruster <=
- [Qemu-devel] [PULL v2 22/24] qapi: Improve how keyval input visitor reports unexpected dicts, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 05/24] test-keyval: Cover use with qobject input visitor, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 04/24] qapi: qobject input visitor variant for use with keyval_parse(), Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 17/24] test-qapi-util: New, covering qapi/qapi-util.c, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 21/24] block: Initial implementation of -blockdev, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 24/24] keyval: Support lists, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 03/24] keyval: New keyval_parse(), Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 20/24] qapi: New qobject_input_visitor_new_str() for convenience, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 02/24] tests: Fix gcov-files-test-qemu-opts-y, gcov-files-test-logging-y, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 07/24] qapi: Factor out common qobject_input_get_keyval(), Markus Armbruster, 2017/03/06