]> granicus.if.org Git - strace/commitdiff
tests: skip pc.test on s390
authorMike Frysinger <vapier@gentoo.org>
Tue, 3 Mar 2015 01:04:34 +0000 (20:04 -0500)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 3 Mar 2015 01:13:10 +0000 (01:13 +0000)
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

index a450c0d15129eec2c3044cf00bb757b11c519a3d..4f12701a9633f34cb6e5c68fadb7e2ac1ebd49c7 100644 (file)
@@ -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;