]> granicus.if.org Git - strace/commitdiff
tests: skip stat32-v.test on x32
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Nov 2015 17:06:38 +0000 (17:06 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Nov 2015 17:06:38 +0000 (17:06 +0000)
Explicitly skip 32-bit stat test on x32 even if libc pretends
to support it.

* tests/stat.c (main) [__x86_64__ && __ILP32__]: Skip.

tests/stat.c

index 9146b73902ad935a8a53a1ad555b952043b11f99..154c92fb5843e9627fa58a30d8723dd432d8ab34 100644 (file)
@@ -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