[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 09/24] libqtest: Fix qmp() & friends to abort on J
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PULL v2 09/24] libqtest: Fix qmp() & friends to abort on JSON parse errors |
Date: |
Mon, 6 Mar 2017 15:11:40 +0100 |
Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
Message-Id: <address@hidden>
---
tests/libqtest.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/libqtest.c b/tests/libqtest.c
index 9033c5f..a5c3d2b 100644
--- a/tests/libqtest.c
+++ b/tests/libqtest.c
@@ -21,6 +21,7 @@
#include <sys/wait.h>
#include <sys/un.h>
+#include "qapi/error.h"
#include "qapi/qmp/json-parser.h"
#include "qapi/qmp/json-streamer.h"
#include "qapi/qmp/qjson.h"
@@ -442,7 +443,7 @@ void qmp_fd_sendv(int fd, const char *fmt, va_list ap)
* is an array type.
*/
va_copy(ap_copy, ap);
- qobj = qobject_from_jsonv(fmt, &ap_copy, NULL);
+ qobj = qobject_from_jsonv(fmt, &ap_copy, &error_abort);
va_end(ap_copy);
/* No need to send anything for an empty QObject. */
--
2.7.4
- [Qemu-devel] [PULL v2 00/24] block: Command line option -blockdev, Markus Armbruster, 2017/03/06
- [Qemu-devel] [PULL v2 01/24] test-qemu-opts: Cover qemu_opts_parse() of "no", Markus Armbruster, 2017/03/06
- [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 <=
- [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, 2017/03/06
- [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