* tests/test-poll.c (test_pipe): Disable the POLLHUP check also on
Cygwin.
* doc/posix-functions/poll.texi: Mention also Cygwin w.r.t. POLLHUP.
+2024-05-23 Bruno Haible <bruno@clisp.org>
+
+ poll tests: Avoid test failure on Cygwin.
+ * tests/test-poll.c (test_pipe): Disable the POLLHUP check also on
+ Cygwin.
+ * doc/posix-functions/poll.texi: Mention also Cygwin w.r.t. POLLHUP.
+
2024-05-23 Bruno Haible <bruno@clisp.org>
renameatu: Work around Cygwin 3.4.6 bug.
@item
On some platforms, file descriptors other than sockets do not support
POLLHUP; they will return a "readable" or "writable" status instead:
-AIX 7.2, HP NonStop, mingw, MSVC.
+AIX 7.2, Cygwin 3.4.6, HP NonStop, mingw, MSVC.
@end itemize
test_pair (fd[0], fd[1]);
close (fd[0]);
int revents = poll1_wait (fd[1], POLLIN | POLLOUT);
-#if !(defined _AIX || (defined _WIN32 && !defined __CYGWIN__))
+#if !(defined _AIX || defined __CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
if ((revents & (POLLHUP | POLLERR)) == 0)
failed ("expecting POLLHUP after shutdown");
#else