* tests/test-poll.c (test_pipe): Disable the POLLHUP check also on
native Windows.
* doc/posix-functions/poll.texi: Mention also native Windows w.r.t.
POLLHUP.
+2023-04-25 Bruno Haible <bruno@clisp.org>
+
+ poll tests: Avoid test failure on native Windows.
+ * tests/test-poll.c (test_pipe): Disable the POLLHUP check also on
+ native Windows.
+ * doc/posix-functions/poll.texi: Mention also native Windows w.r.t.
+ POLLHUP.
+
2023-04-25 Bruno Haible <bruno@clisp.org>
dfa tests: Fix compilation error (regression 2023-04-22).
@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.
+AIX 7.2, 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
+#if !(defined _AIX || (defined _WIN32 && !defined __CYGWIN__))
if ((revents & (POLLHUP | POLLERR)) == 0)
failed ("expecting POLLHUP after shutdown");
#else