[libvirt] [PATCH] domaincapstest: Call virFileWrapperClearPrefixes only on non-WIN32

Michal Privoznik mprivozn at redhat.com
Wed Apr 10 13:12:18 UTC 2019


The virFileWrapperClearPrefixes() function is defined only when
building for non-WIN32.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---

Technically a build breaker fix, but I can't decide if ifdef is better
or removing the call is better.

 tests/domaincapstest.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
index 3ee95a4b58..92676bdd6e 100644
--- a/tests/domaincapstest.c
+++ b/tests/domaincapstest.c
@@ -476,7 +476,9 @@ mymain(void)
     DO_TEST_BHYVE("fbuf", "/usr/sbin/bhyve", &bhyve_caps, VIR_DOMAIN_VIRT_BHYVE);
 #endif /* WITH_BHYVE */
 
+#ifndef WIN32
     virFileWrapperClearPrefixes();
+#endif /* WIN32 */
 
     return ret;
 }
-- 
2.21.0




More information about the libvir-list mailing list