tests: qemuxml2argv: fix expected type for usb-bus-missing

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>
This commit is contained in:
Pino Toscano 2017-09-07 14:19:36 +02:00 committed by Michal Privoznik
parent 4c71b0ee7c
commit 4673999d0f

View File

@ -1402,9 +1402,9 @@ mymain(void)
DO_TEST("usb-port-missing", DO_TEST("usb-port-missing",
QEMU_CAPS_USB_HUB, QEMU_CAPS_USB_HUB,
QEMU_CAPS_NODEFCONFIG); QEMU_CAPS_NODEFCONFIG);
DO_TEST_PARSE_ERROR("usb-bus-missing", DO_TEST_FAILURE("usb-bus-missing",
QEMU_CAPS_USB_HUB, QEMU_CAPS_USB_HUB,
QEMU_CAPS_NODEFCONFIG); QEMU_CAPS_NODEFCONFIG);
DO_TEST("usb-ports", DO_TEST("usb-ports",
QEMU_CAPS_USB_HUB, QEMU_CAPS_USB_HUB,
QEMU_CAPS_NODEFCONFIG); QEMU_CAPS_NODEFCONFIG);