[PATCH] tests: SKIP pc test on s390
Mike Frysinger
vapier at gentoo.org
Tue Mar 3 01:04:34 UTC 2015
The s390 hardware can't support an exact si_addr, and the current kernels
don't handle text addresses correctly at all. Until that improves, skip
the test on s390.
* tests/pc.c (main): Return 77 on s390 systems.
---
tests/pc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/pc.c b/tests/pc.c
index a450c0d..4f12701 100644
--- a/tests/pc.c
+++ b/tests/pc.c
@@ -12,6 +12,14 @@ int main(void)
{
const unsigned long pagesize = sysconf(_SC_PAGESIZE);
+#ifdef __s390__
+ /*
+ * The si_addr field is unreliable:
+ * https://marc.info/?l=linux-s390&m=142515870124248&w=2
+ */
+ return 77;
+#endif
+
/* write instruction pointer length to the log */
if (write(-1, NULL, 2 * sizeof(void *)) >= 0)
return 77;
--
2.3.1
More information about the Strace-devel
mailing list