Commit ef8bf492 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

test/zdtm/static/skip-me.c: generalize

Make it possible to use a custom message telling why the test is
skipped.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent d9664e83
...@@ -194,6 +194,7 @@ err: ...@@ -194,6 +194,7 @@ err:
#else /* __NR_seccomp */ #else /* __NR_seccomp */
#define TEST_SKIP_REASON "incompatible kernel (no seccomp)"
#include "skip-me.c" #include "skip-me.c"
#endif /* __NR_seccomp */ #endif /* __NR_seccomp */
...@@ -184,6 +184,7 @@ err: ...@@ -184,6 +184,7 @@ err:
#else /* __NR_seccomp */ #else /* __NR_seccomp */
#define TEST_SKIP_REASON "incompatible kernel (no seccomp)"
#include "skip-me.c" #include "skip-me.c"
#endif /* __NR_seccomp */ #endif /* __NR_seccomp */
...@@ -209,6 +209,7 @@ err: ...@@ -209,6 +209,7 @@ err:
#else /* __NR_seccomp */ #else /* __NR_seccomp */
#define TEST_SKIP_REASON "incompatible kernel (no seccomp)"
#include "skip-me.c" #include "skip-me.c"
#endif /* __NR_seccomp */ #endif /* __NR_seccomp */
...@@ -129,6 +129,7 @@ err: ...@@ -129,6 +129,7 @@ err:
#else /* __NR_seccomp */ #else /* __NR_seccomp */
#define TEST_SKIP_REASON "incompatible kernel (no seccomp)"
#include "skip-me.c" #include "skip-me.c"
#endif /* __NR_seccomp */ #endif /* __NR_seccomp */
...@@ -2,7 +2,7 @@ int main(int argc, char ** argv) ...@@ -2,7 +2,7 @@ int main(int argc, char ** argv)
{ {
test_init(argc, argv); test_init(argc, argv);
test_msg("Skipping test on incompatible kernel"); test_msg("Skipping test:" TEST_SKIP_REASON);
test_daemon(); test_daemon();
test_waitsig(); test_waitsig();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment