diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-10-01 09:15:40 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-10-01 09:16:31 +0200 |
commit | aeb981ea1b8ecd67b4163bd3f6aab35bf8ad8d8e (patch) | |
tree | 7546d07823350ccf46805992f29ef3a74f9bca41 /testsuites/psxtests | |
parent | _kernel_time.h: Compatibility to future Newlib (diff) | |
download | rtems-aeb981ea1b8ecd67b4163bd3f6aab35bf8ad8d8e.tar.bz2 |
psxtests/psxualarm: Fix test failure
Update #3794.
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxualarm/init.c | 8 |
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; |