[PATCH] tests: skip ipc_sem on broken kernels
Mike Frysinger
vapier at gentoo.org
Tue Mar 3 01:07:14 UTC 2015
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
More information about the Strace-devel
mailing list