From: Mike Frysinger Date: Tue, 3 Mar 2015 01:07:14 +0000 (-0500) Subject: tests: skip ipc_sem.test on broken kernels X-Git-Tag: v4.10~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d79ed12376c3265ff625c4e54212911a28482aa8;p=strace tests: skip ipc_sem.test on broken kernels 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. --- diff --git a/tests/ipc_sem.c b/tests/ipc_sem.c index 3f2fbe7b..eddddd45 100644 --- a/tests/ipc_sem.c +++ b/tests/ipc_sem.c @@ -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; }