io: Fix sporadic test failures in io/tst-stat
authorFlorian Weimer <fweimer@redhat.com>
Thu, 10 Jun 2021 08:09:51 +0000 (10:09 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 10 Jun 2021 11:48:26 +0000 (13:48 +0200)
commitacc85ea1eb046eee9296fbc4803b82cb485ced07
tree75c71013612a2746728ffd1f446b1abbe93e8ced
parent8fe503f74e0a2ab41eec9bbae1e0ea8f5203716b
io: Fix sporadic test failures in io/tst-stat

support_stat_nanoseconds cannot restore the ctime time, and
this may lead to sporadic test failures.  Therefore, probe for
nanoseconds support before the initial statx call.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
io/tst-stat.c
support/support.h