[PATCH] tests: enable virpolkittest on any ELF platform

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/virpolkittest.c b/tests/virpolkittest.c
index a51dd1c..4495c7c 100644
--- a/tests/virpolkittest.c
+++ b/tests/virpolkittest.c
@@ -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__ */
-- 
2.7.4

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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux