summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-21 18:22:38 +0100
committerBruno Haible <bruno@clisp.org>2019-12-22 08:05:03 +0100
commit4d16a83b0c1fcb6c88d03e1ea5fe4a3c57bb43bc (patch)
treea8bd73d1366b1e7f1bd0293bc294994c45a95795 /tests
parent853609a274f0330e55050af5cfe231f9a5a33e09 (diff)
downloadgnulib-4d16a83b0c1fcb6c88d03e1ea5fe4a3c57bb43bc.tar.gz
pthread_sigmask: Avoid test failure on NetBSD 8.0.
* tests/test-pthread_sigmask2.c (main): Skip the error handling test on NetBSD. * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-pthread_sigmask2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-pthread_sigmask2.c b/tests/test-pthread_sigmask2.c
index 7209014131..dfb3c01313 100644
--- a/tests/test-pthread_sigmask2.c
+++ b/tests/test-pthread_sigmask2.c
@@ -59,7 +59,10 @@ main (int argc, char *argv[])
sigaddset (&set, SIGINT);
/* Check error handling. */
+ /* This call returns 0 on NetBSD 8.0. */
+#if !defined __NetBSD__
ASSERT (pthread_sigmask (1729, &set, NULL) == EINVAL);
+#endif
/* Block SIGINT. */
ASSERT (pthread_sigmask (SIG_BLOCK, &set, NULL) == 0);