mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-14 15:14:42 -05:00
tests: domcaps: Remove dependency on libxl PVUSB support
Mock out libxlCapsHasPVUSB to always return true, so test results aren't dependent on host libxl version Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
+2
-10
@@ -508,17 +508,9 @@ mymain(void)
|
||||
|
||||
#if WITH_LIBXL
|
||||
|
||||
# ifdef LIBXL_HAVE_PVUSB
|
||||
# define LIBXL_XENPV_CAPS "libxl-xenpv-usb"
|
||||
# define LIBXL_XENFV_CAPS "libxl-xenfv-usb"
|
||||
# else
|
||||
# define LIBXL_XENPV_CAPS "libxl-xenpv"
|
||||
# define LIBXL_XENFV_CAPS "libxl-xenfv"
|
||||
# endif
|
||||
|
||||
DO_TEST_LIBXL(LIBXL_XENPV_CAPS, "/usr/bin/qemu-system-x86_64",
|
||||
DO_TEST_LIBXL("libxl-xenpv", "/usr/bin/qemu-system-x86_64",
|
||||
"xenpv", "x86_64", VIR_DOMAIN_VIRT_XEN);
|
||||
DO_TEST_LIBXL(LIBXL_XENFV_CAPS, "/usr/bin/qemu-system-x86_64",
|
||||
DO_TEST_LIBXL("libxl-xenfv", "/usr/bin/qemu-system-x86_64",
|
||||
"xenfv", "x86_64", VIR_DOMAIN_VIRT_XEN);
|
||||
|
||||
#endif /* WITH_LIBXL */
|
||||
|
||||
Reference in New Issue
Block a user