[PATCH v7 13/14] tests/semtimedop: Skip tests if __NR_semtimedop isn't defined
Alistair Francis
alistair.francis at wdc.com
Fri Apr 17 16:47:23 UTC 2020
New y2038 safe 32-bit architectures don't have the __NR_semtimedop
syscall, so let's skip the test.
Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
tests/semtimedop.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/semtimedop.c b/tests/semtimedop.c
index 9b929f5b..61a9cc4b 100644
--- a/tests/semtimedop.c
+++ b/tests/semtimedop.c
@@ -6,6 +6,10 @@
*/
#include "tests.h"
+#include "scno.h"
+
+#ifdef __NR_semtimedop
+
#include <sys/ipc.h>
#include <sys/sem.h>
#include <stdint.h>
@@ -143,3 +147,9 @@ main(void)
puts("+++ exited with 0 +++");
return 0;
}
+
+#else
+
+SKIP_MAIN_UNDEFINED("__NR_semtimedop")
+
+#endif /* __NR_semtimedop */
--
2.26.0
More information about the Strace-devel
mailing list