mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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.
This commit is contained in:
parent
e64f2fab92
commit
c782a8d9d9
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user