utimens: Avoid test failures on macOS 10.13.
commit3b123860925185b7ba330e1f24a7a9389a955f9b
authorBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 17:57:10 +0000 (2 18:57 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 17:57:10 +0000 (2 18:57 +0100)
tree9a4866f05c47642188428c4ea1e500d2de939360
parentb4ef486ff5110e4e0714ab77166b5884922be071
utimens: Avoid test failures on macOS 10.13.

Reported by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.

* tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
* tests/test-utimens.h (test_utimens): Don't expect a ctime change when
only the atime is requested to change.
* tests/test-futimens.h (test_futimens): Likewise.
* tests/test-lutimens.h (test_lutimens): Likewise.
ChangeLog
tests/test-futimens.h
tests/test-lutimens.h
tests/test-utimens-common.h
tests/test-utimens.h