summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-25 13:38:47 +0200
committerBruno Haible <bruno@clisp.org>2023-04-25 13:38:47 +0200
commit9c0e7adb118023cb12248ef035636db4f678c700 (patch)
treed63b4e893831b4d7af0e393abc2018936622d71f /tests
parent022714860f3cff7fea0a126659dd87d7ec3edbb8 (diff)
downloadgnulib-9c0e7adb118023cb12248ef035636db4f678c700.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-poll.c b/tests/test-poll.c
index 716c38b492..f34f7f460a 100644
--- a/tests/test-poll.c
+++ b/tests/test-poll.c
@@ -362,7 +362,7 @@ test_pipe (void)
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