diff options
author | Bruno Haible <bruno@clisp.org> | 2021-01-06 06:16:22 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-01-06 06:16:22 +0100 |
commit | 05bee3e887988e9dd5e12ffde2334ee152e7c7e0 (patch) | |
tree | a8b5303b70c255e53030c35eb84f6a58c9eda624 /tests | |
parent | 9333dcf67b904820e442634077ecfe285b363c1a (diff) | |
download | gnulib-05bee3e887988e9dd5e12ffde2334ee152e7c7e0.tar.gz |
utimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.
* lib/utimecmp.c (utimecmpat): On AIX, declare equality when the two
times differ by less than 0.01 seconds.
* tests/test-futimens.h (test_futimens): Pass UTIMECMP_TRUNCATE_SOURCE
flag.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-futimens.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-futimens.h b/tests/test-futimens.h index 31ff900f3d..53eeb5c042 100644 --- a/tests/test-futimens.h +++ b/tests/test-futimens.h @@ -154,7 +154,7 @@ test_futimens (int (*func) (int, struct timespec const *), ASSERT (st3.st_atime == Y2K); ASSERT (0 <= get_stat_atime_ns (&st3)); ASSERT (get_stat_atime_ns (&st3) <= BILLION / 2); - ASSERT (utimecmp (BASE "file", &st1, &st3, 0) <= 0); + ASSERT (utimecmp (BASE "file", &st1, &st3, UTIMECMP_TRUNCATE_SOURCE) <= 0); if (check_ctime) ASSERT (ctime_compare (&st2, &st3) < 0); nap (); |