[CRIU] [PATCH 14/20] test/zdtm/live/static/session01.c: skip the test on non-x86 targets since it contains x86-specific lock operations.
alekskartashov at parallels.com
alekskartashov at parallels.com
Wed Dec 12 08:34:24 EST 2012
From: Alexander Kartashov <alekskartashov at parallels.com>
Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
test/zdtm/live/static/session01.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/test/zdtm/live/static/session01.c b/test/zdtm/live/static/session01.c
index 2fe6aab..ab27cc4 100644
--- a/test/zdtm/live/static/session01.c
+++ b/test/zdtm/live/static/session01.c
@@ -6,6 +6,8 @@
#include <sys/mman.h>
#include "zdtmtst.h"
+
+#if defined(__x86_64__)
#include "lock.h"
const char *test_doc = "Test that sid, pgid are restored";
@@ -336,3 +338,15 @@ err:
}
return 1;
}
+
+#else
+
+int main(int argc, char** argv)
+{
+ test_init(argc, argv);
+ skip("Unsupported arch");
+
+ return 0;
+}
+
+#endif
--
1.7.9.5
More information about the CRIU
mailing list