From: Dmitry V. Levin Date: Fri, 27 Nov 2015 17:06:38 +0000 (+0000) Subject: tests: skip stat32-v.test on x32 X-Git-Tag: v4.11~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2400e9ea54fe00e8024591ecb447692c3547bff1;p=strace tests: skip stat32-v.test on x32 Explicitly skip 32-bit stat test on x32 even if libc pretends to support it. * tests/stat.c (main) [__x86_64__ && __ILP32__]: Skip. --- diff --git a/tests/stat.c b/tests/stat.c index 9146b739..154c92fb 100644 --- a/tests/stat.c +++ b/tests/stat.c @@ -123,11 +123,15 @@ main(int ac, const char **av) struct stat stb; #ifdef NR_stat +# if defined __x86_64__ && defined __ILP32__ + return 77; /* x32 stat is 64-bit */ +# else if (sizeof(stb.st_size) > 4) return 77; assert(syscall(NR_stat, av[1], &stb) == 0); if (!stb.st_mode) return 77; +# endif #else assert(stat(av[1], &stb) == 0); #endif