diff options
author | Bruno Haible <bruno@clisp.org> | 2019-12-21 18:22:38 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-12-22 08:05:03 +0100 |
commit | 4d16a83b0c1fcb6c88d03e1ea5fe4a3c57bb43bc (patch) | |
tree | a8bd73d1366b1e7f1bd0293bc294994c45a95795 /tests | |
parent | 853609a274f0330e55050af5cfe231f9a5a33e09 (diff) | |
download | gnulib-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.c | 3 |
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); |