[PATCH v2 03/23] qemuxml2argvtest: Fix broken invocation of "pseries-spaprvio-invalid"

Peter Krempa pkrempa at redhat.com
Tue Aug 17 16:25:04 UTC 2021


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 at redhat.com>
---
 tests/qemuxml2argvtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 85973a2298..5977f77b86 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -2412,7 +2412,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);
-- 
2.31.1




More information about the libvir-list mailing list