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:
Roman Bogorodskiy 2014-05-01 22:43:58 +04:00
parent f1856eb622
commit 064f49a050

View File

@ -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__) */