From: Mike Frysinger Date: Tue, 3 Mar 2015 01:04:34 +0000 (-0500) Subject: tests: skip pc.test on s390 X-Git-Tag: v4.10~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb202baf414f8141e37b345b03aa2606294bdd12;p=strace tests: skip pc.test on s390 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. --- diff --git a/tests/pc.c b/tests/pc.c index a450c0d1..4f12701a 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;