Changeset 2819bd1 in rtems


Ignore:
Timestamp:
Jul 3, 2009, 6:39:11 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
ecdbb42
Parents:
c5d412c
Message:

2009-07-03 Joel Sherrill <joel.sherrill@…>

  • psx04/init.c, psx04/psx04.scn: Test error cases in sigwait() and sigtimedwait(). Update screen file.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rc5d412c r2819bd1  
     12009-07-03      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * psx04/init.c, psx04/psx04.scn: Test error cases in sigwait() and
     4        sigtimedwait(). Update screen file.
     5
    162009-07-01      Santosh G Vattam <vattam.santosh@gmail.com>
    27
  • testsuites/psxtests/psx04/init.c

    rc5d412c r2819bd1  
    8181  printf( "Init's ID is 0x%08x\n", Init_id );
    8282
     83  /* generate some easy error cases */
     84
     85  status = sigwait( NULL, NULL );
     86  if ( status != EINVAL )
     87    printf( "status = %d (%s)\n", status, strerror(status) );
     88  assert( status == EINVAL );
     89  puts( "Init: sigwait - EINVAL (NULL set)" );
     90
     91  status = sigtimedwait( NULL, NULL, NULL );
     92  if ( status != -1 )
     93    printf( "status = %d\n", status );
     94  assert( errno == EINVAL );
     95  puts( "Init: sigwait - EINVAL (NULL set)" );
     96
    8397/* install a signal handler for SIGUSR1 */
    8498
  • testsuites/psxtests/psx04/psx04.scn

    rc5d412c r2819bd1  
    1 
    2 
    31*** POSIX TEST 4 ***
    42Init's ID is 0x0b010001
     3Init: sigwait - EINVAL (NULL set)
     4Init: sigwait - EINVAL (NULL set)
    55Init: sigemptyset -  set= 0x00000000
    66Init: sigfillset -  set= 0xffffffff
     
    99Init: sigismember - TRUE since SIGUSR2 is a member
    1010Init: send SIGUSR1 to process
    11 Signal: 25 caught by 0xb010001 (1)
    1211
    1312Init: Block SIGUSR1
    1413Init: send SIGUSR1 to process
    15 Signal: 25 caught by 0xb010001 (1)
    1614
    1715Init: Block SIGUSR1
    18 Init: Signals pending 0x00000000
     16Init: Signals pending 0x01000000
    1917Init: send SIGUSR1 to process
    2018Init: Signals pending 0x01000000
    2119Init: Unblock SIGUSR1
    22 Signal: 25 caught by 0xb010001 (2)
     20Signal: 25 caught by 0xb010001 (1)
    2321
    2422Init: create a thread interested in SIGUSR1
     
    3028Init: Signals pending 0x01000000
    3129Init: sleep so the other task can catch signal
    32 Signal: 25 caught by 0xb010002 (3)
     30Signal: 25 caught by 0xb010002 (2)
    3331Task_1: 4 seconds left
    3432Task_1: exit
     
    4038Init: 5 seconds left on previous alarm
    4139Init: Wait 4 seconds for alarm
    42 Signal: 14 caught by 0xb010001 (4)
     40Signal: 14 caught by 0xb010001 (3)
    4341Init: 2 seconds left in sleep
    4442
    4543Init: Block SIGUSR1 and SIGUSR2 only
    46 Init: Previous blocked set was 0x01000000
     44Init: Previous blocked set was 0xffffdfff
    4745Init: Current blocked set is 0x03000000
    4846Init: Unblock all signals
     
    5351Task_2: sending SIGUSR1
    5452Task_2: exit
    55 Signal: 25 caught by 0xb010001 (5)
     53Signal: 25 caught by 0xb010001 (4)
    5654Init: awakended from sigsuspend status=-0000001
    5755
     
    5957Init: sleep so the Task_3 can sigqueue SIGUSR1
    6058Task_3: sigqueue SIGUSR1 with value= 25
    61 Signal_info: 25 caught by 0xb010004 (6) si_signo= 25 si_code= 1 value= 25
     59Signal_info: 25 caught by 0xb010004 (5) si_signo= 25 si_code= 1 value= 25
    6260
    6361Task_3: sigwaitinfo SIGUSR1 with value= 25
     
    112110Init: kill - EINVAL (sig invalid)
    113111*** END OF POSIX TEST 4 ***
    114 Unexpected trap (0x09) at address 0x0201bc74
    115 data access exception at 0x00000008
Note: See TracChangeset for help on using the changeset viewer.