]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemuxml2argv: fix expected type for usb-bus-missing
authorPino Toscano <ptoscano@redhat.com>
Thu, 7 Sep 2017 12:19:36 +0000 (14:19 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Sep 2017 11:05:14 +0000 (13:05 +0200)
The guest of usb-bus-missing does not cause a parse error, but a
validation issue -- hence, switch from DO_TEST_PARSE_ERROR to
DO_TEST_FAILURE.

Fixes commit b003b9781b6ae633cfe4fdf6b9620ca246fa2432.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
tests/qemuxml2argvtest.c

index bf43beb1060020135ed0ee5bdd59b0736788c846..350a0ab121050dee73228286697abed3d52ca6b2 100644 (file)
@@ -1402,9 +1402,9 @@ mymain(void)
     DO_TEST("usb-port-missing",
             QEMU_CAPS_USB_HUB,
             QEMU_CAPS_NODEFCONFIG);
-    DO_TEST_PARSE_ERROR("usb-bus-missing",
-                        QEMU_CAPS_USB_HUB,
-                        QEMU_CAPS_NODEFCONFIG);
+    DO_TEST_FAILURE("usb-bus-missing",
+                    QEMU_CAPS_USB_HUB,
+                    QEMU_CAPS_NODEFCONFIG);
     DO_TEST("usb-ports",
             QEMU_CAPS_USB_HUB,
             QEMU_CAPS_NODEFCONFIG);