]> granicus.if.org Git - strace/commitdiff
tests/s390_sthyi.c: skip the test if s390_sthyi returns an error
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 13 Feb 2018 22:57:27 +0000 (23:57 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 13 Feb 2018 22:57:27 +0000 (22:57 +0000)
tests/s390_sthyi.c (main): replace error_msg_and_fail with
error_msg_and_skip if rc is non-zero.

tests/s390_sthyi.c

index 8b241dd2a52ebd8099c9462f418e5dcab684e591..10a7b872366b9aa6a37f355a0c7b0193887d3da4 100644 (file)
@@ -768,7 +768,7 @@ main(void)
 
        rc = syscall(__NR_s390_sthyi, 0, buf, ret, 0);
        if (rc)
-               error_msg_and_fail("syscall(__NR_s390_sthyi, 0, buf, ret, 0) "
+               error_msg_and_skip("syscall(__NR_s390_sthyi, 0, buf, ret, 0) "
                                   "returned unexpected value of %ld", rc);
 
        printf("s390_sthyi(STHYI_FC_CP_IFL_CAP, ");