1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

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.
This commit is contained in:
Bruno Haible
2026-04-16 00:28:43 +02:00
parent 9ab4bbed73
commit a297266a67
3 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,11 @@
2026-04-15 Bruno Haible <bruno@clisp.org>
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.
2026-04-15 Paul Eggert <eggert@cs.ucla.edu>
doc: doc FTS_NOSTAT similarity to FTS_DEFER_STAT

View File

@@ -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);

View File

@@ -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);