[PATCH v6 11/13] tests/semtimedop: Skip tests if __NR_semtimedop isn't defined
Alistair Francis
alistair.francis at wdc.com
Fri Mar 20 22:09:37 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 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/semtimedop.c b/tests/semtimedop.c
index 9b929f5b..52122337 100644
--- a/tests/semtimedop.c
+++ b/tests/semtimedop.c
@@ -6,6 +6,9 @@
*/
#include "tests.h"
+
+#ifdef __NR_semtimedop
+
#include <sys/ipc.h>
#include <sys/sem.h>
#include <stdint.h>
@@ -143,3 +146,9 @@ main(void)
puts("+++ exited with 0 +++");
return 0;
}
+
+#else
+
+SKIP_MAIN_UNDEFINED("__NR_semtimedop")
+
+#endif /* __NR_semtimedop */
--
2.25.1
More information about the Strace-devel
mailing list