]> granicus.if.org Git - strace/commit
tests: skip stat32 test if struct stat is defined incorrectly
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 17 Jun 2015 20:58:33 +0000 (20:58 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 17 Jun 2015 21:07:56 +0000 (21:07 +0000)
commit68cb82e0f1f8b83484354525aebcfffc3366c037
tree7b532a1154fa005be02a67a5677d77714275ced5
parentd93c4e80b3cf1e04cef218aef32a77be8b7bcd2f
tests: skip stat32 test if struct stat is defined incorrectly

If stat.st_mode returned by syscall is 0, it means that the definition
of struct stat in <asm/stat.h> is incorrect.  This is the case e.g. on
mips n32 where the only available stat syscall is 64-bit but at the same
time struct stat defined by <asm/stat.h> is 32-bit.

* tests/stat.c (main) [NR_stat]: Return 77 if st_mode is 0.
tests/stat.c