[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 11/24] test-qobject-input-visitor: Abort earlier on
From: |
Markus Armbruster |
Subject: |
[Qemu-block] [PATCH 11/24] test-qobject-input-visitor: Abort earlier on bad test input |
Date: |
Mon, 27 Feb 2017 12:20:37 +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>
---
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 44885ee..746dfa3 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-block] [PATCH 00/24] block: Command line option -blockdev, Markus Armbruster, 2017/02/27
- [Qemu-block] [PATCH 13/24] block: More detailed syntax error reporting for JSON filenames, Markus Armbruster, 2017/02/27
- [Qemu-block] [PATCH 06/24] qapi: Factor out common part of qobject input visitor creation, Markus Armbruster, 2017/02/27
- [Qemu-block] [PATCH 11/24] test-qobject-input-visitor: Abort earlier on bad test input,
Markus Armbruster <=
- [Qemu-block] [PATCH 02/24] tests: Fix gcov-files-test-qemu-opts-y, gcov-files-test-logging-y, Markus Armbruster, 2017/02/27
- [Qemu-block] [PATCH 08/24] qobject: Propagate parse errors through qobject_from_jsonv(), Markus Armbruster, 2017/02/27
- [Qemu-block] [PATCH 19/24] qapi: Improve how keyval input visitor reports unexpected dicts, Markus Armbruster, 2017/02/27
- [Qemu-block] [PATCH 12/24] qobject: Propagate parse errors through qobject_from_json(), Markus Armbruster, 2017/02/27