[PATCH] tests: disable testing msgctl with invalid addresses on s390

Sven Schnelle svens at linux.ibm.com
Tue Nov 10 10:48:59 UTC 2020


On s390, libc segfaults when invalid addresses are passed to
msgctl in the ipc_msg.c test case. Therefore disable that test.

Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
---
 tests/ipc_msg.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/ipc_msg.c b/tests/ipc_msg.c
index 55dc287f..b582758d 100644
--- a/tests/ipc_msg.c
+++ b/tests/ipc_msg.c
@@ -39,6 +39,11 @@
 # define TEST_MSGCTL_BOGUS_ADDR 0
 #endif
 
+/* On s390, passing invalid addresses lead to segfault */
+#ifdef __s390__
+# define TEST_MSGCTL_BOGUS_ADDR 0
+#endif
+
 #ifndef TEST_MSGCTL_BOGUS_ADDR
 # define TEST_MSGCTL_BOGUS_ADDR 1
 #endif
-- 
2.17.1



More information about the Strace-devel mailing list