tests: only run the seccomp check if it was enabled

This commit is contained in:
Nikos Mavrogiannopoulos
2015-01-29 14:12:20 +01:00
parent 2d06c2da56
commit 00a2caee36

View File

@@ -1,5 +1,8 @@
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_LIBSECCOMP
#include <seccomp.h>
#include <errno.h>
#include <sys/types.h>
@@ -37,3 +40,9 @@ int main()
fprintf(stderr, "all ok\n");
exit(0);
}
#else
int main()
{
return 77;
}
#endif