mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
tests: skip virfirewalltest on non-Linux systems
Currently firewalling is supported on Linux only, so skip the virfirewalltest on other platforms.
This commit is contained in:
parent
f1856eb622
commit
064f49a050
@ -24,6 +24,9 @@
|
||||
#define __VIR_COMMAND_PRIV_H_ALLOW__
|
||||
|
||||
#include "testutils.h"
|
||||
|
||||
#if defined(__linux__)
|
||||
|
||||
# include "virbuffer.h"
|
||||
# include "vircommandpriv.h"
|
||||
# include "virfirewallpriv.h"
|
||||
@ -1184,3 +1187,12 @@ VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virmockdbus.so")
|
||||
# else
|
||||
VIRT_TEST_MAIN(mymain)
|
||||
# endif
|
||||
|
||||
#else /* ! defined (__linux__) */
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return EXIT_AM_SKIP;
|
||||
}
|
||||
|
||||
#endif /* ! defined(__linux__) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user