test-qobject-input-visitor: Abort earlier on bad test input

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 <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <1488317230-26248-12-git-send-email-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2017-02-28 22:26:57 +01:00
parent ea5ef5c80b
commit bff17e84a9

View File

@ -51,7 +51,7 @@ static Visitor *visitor_input_test_init_internal(TestInputVisitorData *data,
{ {
visitor_input_teardown(data, NULL); 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); g_assert(data->obj);
if (keyval) { if (keyval) {