diff --git a/tests/test-visitor-serialization.c b/tests/test-visitor-serialization.c index 37dff41fbdb9980c634debb56dc65a9bd3e7a9b2..4d47ceec7ad109d1b588757f4f88263f9c766b1a 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);