From acc85ea1eb046eee9296fbc4803b82cb485ced07 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 10 Jun 2021 10:09:51 +0200 Subject: 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 --- support/support.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'support/support.h') diff --git a/support/support.h b/support/support.h index db264e3db7..874204b7fc 100644 --- a/support/support.h +++ b/support/support.h @@ -141,7 +141,8 @@ static __inline bool support_path_support_time64 (const char *path) 0x80000002ULL); } -/* Return true if stat supports nanoseconds resolution. */ +/* Return true if stat supports nanoseconds resolution. PATH is used + for tests and its ctime may change. */ extern bool support_stat_nanoseconds (const char *path); /* Return true if select modify the timeout to reflect the amount of time -- cgit v1.2.3-65-gdbad