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.
This commit is contained in:
Дмитрий Левин 2015-11-27 17:06:38 +00:00
parent 0ca438d13b
commit 2400e9ea54

View 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