Commit 4d16a83b authored by Bruno Haible's avatar Bruno Haible
Browse files

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.
parent 853609a2
2019-12-21 Bruno Haible <bruno@clisp.org>
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.
2019-12-21 Bruno Haible <bruno@clisp.org>
 
threadlib: Improve code structure.
......@@ -34,4 +34,7 @@ Portability problems not fixed by Gnulib:
@item
On platforms that do not natively support this function,
it has unspecified behavior in a multi-threaded process.
@item
This function may not fail when the first argument is invalid on some platforms:
NetBSD 8.0.
@end itemize
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment