[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v4 15/24] test-visitor-serialization: Pass &error_abo
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PULL v4 15/24] test-visitor-serialization: Pass &error_abort to qobject_from_json() |
Date: |
Tue, 7 Mar 2017 16:20:36 +0100 |
qmp_deserialize() calls qobject_from_json() ignoring errors. It
passes the result to qobject_input_visitor_new(), which asserts it's
not null. Therefore, we can just as well pass &error_abort to
qobject_from_json().
Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
Message-Id: <address@hidden>
---
tests/test-visitor-serialization.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-visitor-serialization.c
b/tests/test-visitor-serialization.c
index 37dff41..4d47cee 100644
--- a/tests/test-visitor-serialization.c
+++ b/tests/test-visitor-serialization.c
@@ -1037,7 +1037,7 @@ static void qmp_deserialize(void **native_out, void
*datap,
visit_complete(d->qov, &d->obj);
obj_orig = d->obj;
output_json = qobject_to_json(obj_orig);
- obj = qobject_from_json(qstring_get_str(output_json), NULL);
+ obj = qobject_from_json(qstring_get_str(output_json), &error_abort);
QDECREF(output_json);
d->qiv = qobject_input_visitor_new(obj);
--
2.7.4
- [Qemu-devel] [PULL v4 22/24] qapi: Improve how keyval input visitor reports unexpected dicts, (continued)
- [Qemu-devel] [PULL v4 22/24] qapi: Improve how keyval input visitor reports unexpected dicts, Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 18/24] qapi: New parse_qapi_name(), Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 14/24] check-qjson: Test errors from qobject_from_json(), Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 24/24] keyval: Support lists, Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 07/24] qapi: Factor out common qobject_input_get_keyval(), Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 05/24] test-keyval: Cover use with qobject input visitor, Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 19/24] keyval: Restrict key components to valid QAPI names, Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 23/24] docs/qapi-code-gen.txt: Clarify naming rules, Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 21/24] block: Initial implementation of -blockdev, Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 12/24] qobject: Propagate parse errors through qobject_from_json(), Markus Armbruster, 2017/03/07
- [Qemu-devel] [PULL v4 15/24] test-visitor-serialization: Pass &error_abort to qobject_from_json(),
Markus Armbruster <=
- [Qemu-devel] [PULL v4 01/24] test-qemu-opts: Cover qemu_opts_parse() of "no", Markus Armbruster, 2017/03/07
- Re: [Qemu-devel] [PULL v4 00/24] block: Command line option -blockdev, no-reply, 2017/03/07
- Re: [Qemu-devel] [PULL v4 00/24] block: Command line option -blockdev, Peter Maydell, 2017/03/08