summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psxualarm/init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxualarm/init.c b/testsuites/psxtests/psxualarm/init.c
index 7a4fb21b99..2aa133bcd4 100644
--- a/testsuites/psxtests/psxualarm/init.c
+++ b/testsuites/psxtests/psxualarm/init.c
@@ -50,6 +50,14 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
+ /* Block SIGALRM */
+ status = sigemptyset( &mask );
+ rtems_test_assert( status == 0 );
+ status = sigaddset( &mask, SIGALRM );
+ rtems_test_assert( !status );
+ status = sigprocmask( SIG_BLOCK, &mask, NULL );
+ rtems_test_assert( status == 0 );
+
/* Validate ualarm is ignored if signal not caught */
act.sa_handler = Signal_handler;
act.sa_flags = 0;