]> granicus.if.org Git - strace/commitdiff
tests: skip ipc_sem.test on broken kernels
authorMike Frysinger <vapier@gentoo.org>
Tue, 3 Mar 2015 01:07:14 +0000 (20:07 -0500)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 3 Mar 2015 01:13:23 +0000 (01:13 +0000)
Rather than trigger an ERROR which fails `make check`, go with SKIP
instead.  We don't want the testsuite failing due to kernel bugs.

* tests/ipc_sem.c (main): Change 99 to 77.

tests/ipc_sem.c

index 3f2fbe7b52bba0f1f33741908e219700a544f6e1..eddddd4577e711efecd6f64f2366fdde0edb0a38 100644 (file)
@@ -44,6 +44,10 @@ done:
        return rc;
 
 fail:
-       rc = errno == EFAULT ? 99 : 1;
+       /*
+        * If the kernel failed, SKIP the test.  We want to ignore
+        * such failures as they're out of scope for this project.
+        */
+       rc = errno == EFAULT ? 77 : 1;
        goto done;
 }