]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2argvtest: Fix broken invocation of "pseries-spaprvio-invalid"
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Aug 2021 12:04:41 +0000 (14:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 18 Aug 2021 08:20:48 +0000 (10:20 +0200)
The string "ppc64" is passed in place of capability flags. We were lucky
that the pointer was always more than QEMU_CAPS_LAST.

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

index c99bb18f7f6acb0eeba4a70244af09223e18c72f..0aa213a68b9f2aff28f113cd5f372688f1e509fe 100644 (file)
@@ -2409,7 +2409,7 @@ mymain(void)
     DO_TEST("pseries-console-virtio",
             QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE);
     DO_TEST_PARSE_ERROR("pseries-serial-invalid-machine", NONE);
-    DO_TEST_PARSE_ERROR("pseries-spaprvio-invalid", "ppc64");
+    DO_TEST_PARSE_ERROR("pseries-spaprvio-invalid", NONE);
 
     DO_TEST("mach-virt-serial-native",
             QEMU_CAPS_DEVICE_PL011);