* 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>
+
+ 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.
@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
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);