]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: enable virpolkittest on any ELF platform
authorPino Toscano <ptoscano@redhat.com>
Mon, 28 Nov 2016 13:47:30 +0000 (14:47 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 22 Dec 2016 15:32:05 +0000 (16:32 +0100)
This tests uses preload, which should work on any ELF-based platform
(and indeed it passes on Linux, GNU/kFreeBSD, and FreeBSD).

Also remove the WITH_DBUS conditional, as the test is already built
based on that conditional.

tests/virpolkittest.c

index a51dd1c2d41946da6e2c7c062e2d9533fb959156..4495c7c8880a4d810231834226518719e5035ac8 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "testutils.h"
 
-#if defined(WITH_DBUS) && defined(__linux__)
+#if defined(__ELF__)
 
 # include <stdlib.h>
 # include <dbus/dbus.h>
@@ -352,10 +352,10 @@ mymain(void)
 
 VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virdbusmock.so")
 
-#else /* ! (WITH_DBUS && __linux__) */
+#else /* ! __ELF__ */
 int
 main(void)
 {
     return EXIT_AM_SKIP;
 }
-#endif /* ! WITH_DBUS */
+#endif /* ! __ELF__ */