s390: Fix to skip the test if GS not supported

Submitted by alice on Aug. 15, 2018, 9:14 a.m.

Details

Message ID 20180815091422.22722-1-alice@linux.vnet.ibm.com
State Accepted
Series "s390: Fix to skip the test if GS not supported"
Headers show

Commit Message

alice Aug. 15, 2018, 9:14 a.m.
Signed-off-by: Alice Frosi <alice@linux.vnet.ibm.com>
---
 test/zdtm/static/s390x_gs_threads.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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");