On 2024-08-10 17:57, Collin Funk wrote:
All seem to have Y2K:

Yes, and that's the correct value. Thanks to both you and Bruno for reporting it. I installed the attached.
From 8fa1fba5dab1a126c25e534867f653359039d177 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Sat, 10 Aug 2024 21:47:07 -0700
Subject: [PATCH] test-fdutimensat: fix newly-added test

Problem reported by Bruno Haible and Collin Funk in:
https://lists.gnu.org/r/bug-gnulib/2024-08/msg00061.html
https://lists.gnu.org/r/bug-gnulib/2024-08/msg00064.html
* tests/test-utimens.h (test_utimens): Fix typo in new test,
which causes the test to break on file systems that are not noatime.
---
 ChangeLog            | 9 +++++++++
 tests/test-utimens.h | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 5938c70ea9..0f232e39db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-08-10  Paul Eggert  <egg...@cs.ucla.edu>
+
+	test-fdutimensat: fix newly-added test
+	Problem reported by Bruno Haible and Collin Funk in:
+	https://lists.gnu.org/r/bug-gnulib/2024-08/msg00061.html
+	https://lists.gnu.org/r/bug-gnulib/2024-08/msg00064.html
+	* tests/test-utimens.h (test_utimens): Fix typo in new test,
+	which causes the test to break on file systems that are not noatime.
+
 2024-08-10  Collin Funk  <collin.fu...@gmail.com>
 
 	htonl: Add tests.
diff --git a/tests/test-utimens.h b/tests/test-utimens.h
index 256d48de90..575507f735 100644
--- a/tests/test-utimens.h
+++ b/tests/test-utimens.h
@@ -194,7 +194,7 @@ test_utimens (int (*func) (char const *, struct timespec const *), bool print)
     ASSERT (stat (BASE "link", &st2) == 0);
     if (check_atime)
       {
-        ASSERT (st2.st_atime == BILLION);
+        ASSERT (st2.st_atime == Y2K);
         ASSERT (get_stat_atime_ns (&st2) == 0);
       }
     ASSERT (st2.st_mtime == Y2K);
-- 
2.43.0

Reply via email to