diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c index 9d3c2fe6b0..6329096a68 100644 --- a/tests/qemublocktest.c +++ b/tests/qemublocktest.c @@ -98,7 +98,7 @@ testBackingXMLjsonXML(const void *args) } } - if (virJSONValueObjectCreate(&wrapper, "a:file", &backendprops, NULL) < 0) + if (virJSONValueObjectAdd(&wrapper, "a:file", &backendprops, NULL) < 0) return -1; if (!(propsstr = virJSONValueToString(wrapper, false)))