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 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/ipc_sem.c b/tests/ipc_sem.c
index 3f2fbe7..eddddd4 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;
 }
-- 
2.3.1


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to