about summary refs log tree commit diff
path: root/support
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-10 10:09:51 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-10 13:48:26 +0200
commitacc85ea1eb046eee9296fbc4803b82cb485ced07 (patch)
tree75c71013612a2746728ffd1f446b1abbe93e8ced /support
parent8fe503f74e0a2ab41eec9bbae1e0ea8f5203716b (diff)
downloadglibc-acc85ea1eb046eee9296fbc4803b82cb485ced07.tar.gz
glibc-acc85ea1eb046eee9296fbc4803b82cb485ced07.tar.xz
glibc-acc85ea1eb046eee9296fbc4803b82cb485ced07.zip
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>
Diffstat (limited to 'support')
-rw-r--r--support/support.h3
1 files changed, 2 insertions, 1 deletions
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