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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user