S390: Don't test nanoseconds in io/tst-stat.c
authorStefan Liebler <stli@linux.ibm.com>
Wed, 17 Mar 2021 13:03:52 +0000 (14:03 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Fri, 26 Mar 2021 09:21:13 +0000 (10:21 +0100)
commit1966f47a1e54f962a355a5f6a6b730c9848ab956
tree2571f0fd7e258033a526e0dc98977f42002f7987
parent0923f74adaa2827264a0d7cbe51ba287fc0f0c16
S390: Don't test nanoseconds in io/tst-stat.c

Both new tests io/tst-stat and io/tst-stat-lfs (_FILE_OFFSET_BITS=64)
are comparing the nanosecond fields with the statx result.  Unfortunately
on s390(31bit) those fields are always zero if old KABI with non-LFS
support is used.  With _FILE_OFFSET_BITS=64 stat is using statx internally.

As suggested by Adhemerval this patch disables the nanosecond check for
s390(31bit).
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
io/tst-stat.c
support/Makefile
support/support.h
support/support_stat_nanoseconds.c [new file with mode: 0644]