]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virfiletest: Load mock on Linux only
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Oct 2018 08:36:02 +0000 (10:36 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Oct 2018 10:41:33 +0000 (12:41 +0200)
The mock is built on Linux only. Therefore we should load it only
on Linux too. This fixes the FreeBSD build.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
tests/virfiletest.c

index d5102b1cc47dbe8b2f35a9fc77abdf331101b527..1f2be74c8dd62024182a5ec8c6748a969c765848 100644 (file)
@@ -460,4 +460,8 @@ mymain(void)
     return ret != 0 ? EXIT_FAILURE : EXIT_SUCCESS;
 }
 
+#ifdef __linux__
 VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virfilemock.so")
+#else
+VIR_TEST_MAIN(mymain)
+#endif