From aeb981ea1b8ecd67b4163bd3f6aab35bf8ad8d8e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 1 Oct 2019 09:15:40 +0200 Subject: psxtests/psxualarm: Fix test failure Update #3794. --- testsuites/psxtests/psxualarm/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testsuites/psxtests') 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; -- cgit v1.2.3