summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-12 02:52:11 +0100
committerBruno Haible <bruno@clisp.org>2019-12-12 02:52:11 +0100
commit8de83b9d8f871cd283ca4853e592290a82955fcb (patch)
tree3fcba4b7f581ea623ad1ccfbdce60aaf21bcf1bf
parentdcf8aee17e742f288e0844db61114e11ee6afb1f (diff)
downloadgnulib-8de83b9d8f871cd283ca4853e592290a82955fcb.tar.gz
gnulib-8de83b9d8f871cd283ca4853e592290a82955fcb.tar.bz2
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.
-rw-r--r--ChangeLog7
-rw-r--r--doc/posix-functions/fsync.texi2
-rw-r--r--tests/test-fsync.c5
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 326c446e77..ab6859e5fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
* m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
diff --git a/doc/posix-functions/fsync.texi b/doc/posix-functions/fsync.texi
index 3328af7c0a..24305db340 100644
--- a/doc/posix-functions/fsync.texi
+++ b/doc/posix-functions/fsync.texi
@@ -18,5 +18,5 @@ Portability problems not fixed by Gnulib:
@item
If the argument is a read-only file descriptor, this function fails
with @code{EBADF} on some platforms:
-AIX 7.1.
+AIX 7.2, Cygwin 2.9.
@end itemize
diff --git a/tests/test-fsync.c b/tests/test-fsync.c
index d613cf018d..b7b5cba2d0 100644
--- a/tests/test-fsync.c
+++ b/tests/test-fsync.c
@@ -64,7 +64,9 @@ main (void)
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);
{
@@ -73,6 +75,7 @@ main (void)
}
ASSERT (fsync (fd) == 0);
ASSERT (close (fd) == 0);
+#endif
ASSERT (unlink (file) == 0);

Return to:

Send suggestions and report system problems to the System administrator.