> Pádraig Brady wrote:
> > make check errored out towards the end with:
> > gmake[6]: *** [Makefile:13735: test-pthread_sigmask2.log] Error 130
> > 
> > which seems related to this patchset.
> 
> Indeed, I reproduce it: "./test-pthread_sigmask2" now exits with status 130.

Fixed by this patch. Thanks for the report.


2026-04-15  Bruno Haible  <[email protected]>

        pthread_sigmask tests: Fix test failure on Solaris, AIX (regr. today).
        Reported by Pádraig Brady.
        * tests/test-pthread_sigmask2.c (main): Reestablish the signal handler
        after SIGINT arrived.
        * tests/test-sigdelay2.c (main): Likewise.

diff --git a/tests/test-pthread_sigmask2.c b/tests/test-pthread_sigmask2.c
index 31a880a840..ed2629238b 100644
--- a/tests/test-pthread_sigmask2.c
+++ b/tests/test-pthread_sigmask2.c
@@ -107,6 +107,11 @@ main ()
         before the call to pthread_sigmask() returns."  */
   ASSERT (sigint_occurred == 1);
 
+  /* On SystemV derivatives, we need to reestablish the signal handler.  */
+#if defined __sun || defined _AIX /* Solaris, AIX */
+  signal (SIGINT, sigint_handler);
+#endif
+
   /* Request a SIGINT signal from another thread.  */
   ASSERT (pthread_create (&killer_thread2, NULL, killer_thread2_func, NULL)
           == 0);
diff --git a/tests/test-sigdelay2.c b/tests/test-sigdelay2.c
index 7d15d6de5b..8ab36cce8d 100644
--- a/tests/test-sigdelay2.c
+++ b/tests/test-sigdelay2.c
@@ -104,6 +104,11 @@ main ()
   /* The signal should have arrived now.  */
   ASSERT (sigint_occurred == 1);
 
+  /* On SystemV derivatives, we need to reestablish the signal handler.  */
+#if defined __sun || defined _AIX /* Solaris, AIX */
+  signal (SIGINT, sigint_handler);
+#endif
+
   /* Request a SIGINT signal from another thread.  */
   ASSERT (pthread_create (&killer_thread2, NULL, killer_thread2_func, NULL)
           == 0);




Reply via email to