]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: domaincaps: Fix build when WITH_QEMU is disabled
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:31:08 +0000 (19:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:33:52 +0000 (19:33 +0200)
doTestQemuInternal and doTestQemu are used only when WITH_QEMU is
enabled.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/domaincapstest.c

index 0197c61c8a49d032c324558152f7271eed4f7015..f77accdb761c0ec21ead03193e04f0c5c8215256 100644 (file)
@@ -266,6 +266,9 @@ test_virDomainCapsFormat(const void *opaque)
     return ret;
 }
 
+
+#if WITH_QEMU
+
 static int
 doTestQemuInternal(const char *version,
                    const char *machine,
@@ -349,6 +352,8 @@ doTestQemu(const char *inputDir G_GNUC_UNUSED,
     return 0;
 }
 
+#endif
+
 static int
 mymain(void)
 {