]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemustatusxml2xmltest: Remove hack for qemuCaps allocation
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Aug 2021 13:12:21 +0000 (15:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 18 Aug 2021 08:20:48 +0000 (10:20 +0200)
Since qemuCaps are now always allocated we don't need the hack.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemustatusxml2xmltest.c

index 63fbaa0ddb25c2e1ebed2db075262844460683c2..ac007405a6e4d45d3b4ea31d6740e9f8c7b1a03f 100644 (file)
@@ -110,9 +110,7 @@ mymain(void)
         static struct testQemuInfo info = { \
             .name = _name, \
         }; \
-        if (testQemuInfoSetArgs(&info, capscache, capslatest, \
-                                ARG_QEMU_CAPS, QEMU_CAPS_LAST, \
-                                ARG_END) < 0 || \
+        if (testQemuInfoSetArgs(&info, capscache, capslatest, ARG_END) < 0 || \
             qemuTestCapsCacheInsert(driver.qemuCapsCache, info.qemuCaps) < 0) { \
             VIR_TEST_DEBUG("Failed to generate status test data for '%s'", _name); \
             return -1; \