From: Pino Toscano Date: Mon, 28 Nov 2016 13:47:30 +0000 (+0100) Subject: tests: enable virpolkittest on any ELF platform X-Git-Tag: v3.0.0-rc1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c782a8d9d92e5b6cb7cd56e5eb4f37ab573e2562;p=thirdparty%2Flibvirt.git tests: enable virpolkittest on any ELF platform 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. --- diff --git a/tests/virpolkittest.c b/tests/virpolkittest.c index a51dd1c2d4..4495c7c888 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 # include @@ -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__ */