From 639d6e704530d12a6fb4b7244abe6825411e490d Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 24 Oct 2019 19:31:08 +0200 Subject: [PATCH] tests: domaincaps: Fix build when WITH_QEMU is disabled doTestQemuInternal and doTestQemu are used only when WITH_QEMU is enabled. Signed-off-by: Peter Krempa --- tests/domaincapstest.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- GitLab