diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-18 11:09:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-18 11:11:21 +0200 |
commit | ae0f048ff3216ac36d880ce3b9651bd9a1db676c (patch) | |
tree | 17b8cc5775977bf090d9160c23e3213ed32789c0 /testsuites/psxtests/psxualarm/init.c | |
parent | posix: Fix return states of pthread_kill() (diff) | |
download | rtems-ae0f048ff3216ac36d880ce3b9651bd9a1db676c.tar.bz2 |
psxtests/psxualarm: Avoid output in signal handler
Avoid output in signal handler to not disturb the timings which are
checked in this test. Use asserts to ensure proper signal handler
invocations.
Diffstat (limited to 'testsuites/psxtests/psxualarm/init.c')
-rw-r--r-- | testsuites/psxtests/psxualarm/init.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/testsuites/psxtests/psxualarm/init.c b/testsuites/psxtests/psxualarm/init.c index 1ec6473efa..7a4fb21b99 100644 --- a/testsuites/psxtests/psxualarm/init.c +++ b/testsuites/psxtests/psxualarm/init.c @@ -20,19 +20,14 @@ const char rtems_test_name[] = "PSXUALARM"; -volatile int Signal_count; +static volatile int Signal_count; static void Signal_handler( int signo ) { - Signal_count++; - printf( - "Signal: %d caught by 0x%" PRIxpthread_t " (%d)\n", - signo, - pthread_self(), - Signal_count - ); + rtems_test_assert( signo == SIGALRM ); + ++Signal_count; } void *POSIX_Init( |