Mercurial > gnulib
changeset 39853:508633341b55
stat-time tests: Fix test failure on Cygwin.
* tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 18 Sep 2018 21:27:15 +0200 |
parents | b709ecd47026 |
children | 02e3e9bb4409 |
files | ChangeLog tests/nap.h |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Sep 18 12:27:10 2018 -0700 +++ b/ChangeLog Tue Sep 18 21:27:15 2018 +0200 @@ -1,3 +1,8 @@ +2018-09-18 Bruno Haible <bruno@clisp.org> + + stat-time tests: Fix test failure on Cygwin. + * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows. + 2018-09-18 Paul Eggert <eggert@cs.ucla.edu> doc: OS X 10.11 lacked ns time functions
--- a/tests/nap.h Tue Sep 18 12:27:10 2018 -0700 +++ b/tests/nap.h Tue Sep 18 21:27:15 2018 +0200 @@ -64,8 +64,8 @@ if (do_write) { ASSERT (write (nap_fd, "\n", 1) == 1); -#if defined _WIN32 && ! defined __CYGWIN__ - /* On native Windows, the modification times are not changed until NAP_FD +#if defined _WIN32 || defined __CYGWIN__ + /* On Windows, the modification times are not changed until NAP_FD is closed. See https://msdn.microsoft.com/en-us/library/windows/desktop/aa365747(v=vs.85).aspx */ close (nap_fd);