Changeset ae0f048 in rtems


Ignore:
Timestamp:
May 18, 2016, 9:09:10 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2aae3a7
Parents:
3c20d28
git-author:
Sebastian Huber <sebastian.huber@…> (05/18/16 09:09:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/18/16 09:11:21)
Message:

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.

Location:
testsuites/psxtests/psxualarm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxualarm/init.c

    r3c20d28 rae0f048  
    2121const char rtems_test_name[] = "PSXUALARM";
    2222
    23 volatile int Signal_count;
     23static volatile int Signal_count;
    2424
    2525static void Signal_handler(
     
    2727)
    2828{
    29   Signal_count++;
    30   printf(
    31     "Signal: %d caught by 0x%" PRIxpthread_t " (%d)\n",
    32     signo,
    33     pthread_self(),
    34     Signal_count
    35   );
     29  rtems_test_assert( signo == SIGALRM );
     30  ++Signal_count;
    3631}
    3732
  • testsuites/psxtests/psxualarm/psxualarm.scn

    r3c20d28 rae0f048  
    1 *** POSIX TEST UALARM ***
     1*** BEGIN OF TEST PSXUALARM ***
    22Init's ID is 0x0b010001
    3 Init: ualarm in 1 us
     3Init: ualarm in 500000 us
    44Init: Unblock SIGALRM
    5 Signal: 14 caught by 0xb010001 (1)
    6 Signal: 14 caught by 0xb010001 (2)
    7 Init: clear ualarm with 0,0
    8 *** END OF POSIX TEST UALARM ***
     5Init: clear ualarm with 0, 0
     6*** END OF TEST PSXUALARM ***
Note: See TracChangeset for help on using the changeset viewer.