]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
pthread_sigmask: Avoid test failure on NetBSD 8.0.
authorBruno Haible <bruno@clisp.org>
Sat, 21 Dec 2019 17:22:38 +0000 (18:22 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Dec 2019 07:05:03 +0000 (08:05 +0100)
* tests/test-pthread_sigmask2.c (main): Skip the error handling test on
NetBSD.
* doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.

ChangeLog
doc/posix-functions/pthread_sigmask.texi
tests/test-pthread_sigmask2.c

index 1d79e24b14f2283e548c9ca51ccd7bb9f80c2934..8ca1c76291a9b251f5eee18956bd75b3c595850f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index dbee37f7bb333e3e8c74fd5588dd287103bc36d2..28146627051325b6e96df04dfdc11e9b7c56e831 100644 (file)
@@ -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
index 72090141317e4614866036ad4434c8c106be85c0..dfb3c0131367c62a9b0422c45b9983cad38e6540 100644 (file)
@@ -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);