+2019-12-11 Bruno Haible <bruno@clisp.org>
+
+ fsync tests: Skip test that is known to fail.
+ * doc/posix-functions/fsync.texi: Update list of platforms.
+ * tests/test-fsync.c (main): Skip test with read-only file descriptors
+ that is known to fail on AIX and Cygwin.
+
2019-12-11 Bruno Haible <bruno@clisp.org>
getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
ASSERT (close (fd) == 0);
/* For a read-only regular file input file descriptor, fsync should
- succeed (since at least atime changes can be synchronized). */
+ succeed (since at least atime changes can be synchronized).
+ On AIX and Cygwin, this test would fail. */
+#if !(defined _AIX || defined __CYGWIN__)
fd = open (file, O_RDONLY);
ASSERT (0 <= fd);
{
}
ASSERT (fsync (fd) == 0);
ASSERT (close (fd) == 0);
+#endif
ASSERT (unlink (file) == 0);