]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix xlconfigtest with older libxl
authorJán Tomko <jtomko@redhat.com>
Thu, 2 Apr 2015 12:57:54 +0000 (14:57 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 2 Apr 2015 13:11:43 +0000 (15:11 +0200)
Commit cd5dc30 added this test, but it fails if
LIBXL_HAVE_BUILDINFO_USBDEVICE_LIST is not defined:

6) Xen XM-2-XML Format fullvirt-multiusb
... libvirt:  error : unsupported configuration: multiple USB
devices not supported
FAILED

tests/xlconfigtest.c

index 6d4aa6dd8c7f22c03ba69c6d3087d85a598ab3e6..c992548dccd12fb87c19ff5ea04b8eba98345727 100644 (file)
@@ -215,7 +215,10 @@ mymain(void)
 
     DO_TEST("new-disk", 3);
     DO_TEST("spice", 3);
+
+#ifdef LIBXL_HAVE_BUILDINFO_USBDEVICE_LIST
     DO_TEST("fullvirt-multiusb", 3);
+#endif
 
     virObjectUnref(caps);
     virObjectUnref(xmlopt);