[libvirt] [PATCH] tests: domaincaps: Fix build when WITH_QEMU is disabled

Peter Krempa posted 1 patch 4 years, 6 months ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/639d6e704530d12a6fb4b7244abe6825411e490d.1571938452.git.pkrempa@redhat.com
tests/domaincapstest.c | 5 +++++
1 file changed, 5 insertions(+)
[libvirt] [PATCH] tests: domaincaps: Fix build when WITH_QEMU is disabled
Posted by Peter Krempa 4 years, 6 months ago
doTestQemuInternal and doTestQemu are used only when WITH_QEMU is
enabled.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 tests/domaincapstest.c | 5 +++++
 1 file changed, 5 insertions(+)

Pushed as a fix for broken build.

diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
index 0197c61c8a..f77accdb76 100644
--- a/tests/domaincapstest.c
+++ b/tests/domaincapstest.c
@@ -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)
 {
-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list