+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-24 Bruno Haible <bruno@clisp.org>
select, pselect: Fix test failure on native Windows.
@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 of poll() function.
- Copyright (C) 2008-2022 Free Software Foundation, Inc.
+ Copyright (C) 2008-2023 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
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