[CRIU] [PATCH] s390: Fix to skip the test if GS not supported
Alice Frosi
alice at linux.vnet.ibm.com
Wed Aug 15 12:14:22 MSK 2018
Signed-off-by: Alice Frosi <alice at linux.vnet.ibm.com>
---
test/zdtm/static/s390x_gs_threads.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/zdtm/static/s390x_gs_threads.c b/test/zdtm/static/s390x_gs_threads.c
index 7d3a0752..8d144219 100644
--- a/test/zdtm/static/s390x_gs_threads.c
+++ b/test/zdtm/static/s390x_gs_threads.c
@@ -149,7 +149,7 @@ int main(int argc, char *argv[])
test_init(argc, argv);
/* Enable guarded-storage */
if (syscall(__NR_guarded_storage, GS_ENABLE) != 0) {
- if (errno == ENOSYS) {
+ if (errno == ENOSYS || errno == EOPNOTSUPP) {
test_daemon();
test_waitsig();
skip("No guarded storage support");
--
2.14.1
More information about the CRIU
mailing list