Changeset feedcdc in rtems


Ignore:
Timestamp:
Sep 1, 2005, 4:14:17 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
0bb4dd03
Parents:
3c838f1a
Message:

2005-09-01 Joel Sherrill <joel@…>

PR 628/rtems

  • psx04/init.c, psx04/psx04.scn: Update tests to reflect a signal of 0 being an error.
Location:
c/src/tests/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/ChangeLog

    r3c838f1a rfeedcdc  
     12005-09-01      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 628/rtems
     4        * psx04/init.c, psx04/psx04.scn: Update tests to reflect a signal of 0
     5        being an error.
     6
    172004-03-05      Joel Sherrill <joel@OARcorp.com>
    28
  • c/src/tests/psxtests/psx04/init.c

    r3c838f1a rfeedcdc  
    422422
    423423  status = sigaddset( &mask, 0 );
    424   assert( !status );
    425   puts( "Init: sigaddset - SUCCESSFUL (signal = 0)" );
     424  if ( status != -1 )
     425    printf( "status = %d\n", status );
     426  assert( errno == EINVAL );
     427  puts( "Init: sigaddset - EINVAL (signal = 0)" );
    426428
    427429  status = sigaddset( &mask, 999 );
     
    464466
    465467  status = sigaction( 0, &act, 0 );
    466   assert( !status );
    467   puts( "Init: sigaction - SUCCESSFUL (signal = 0)" );
     468  if ( status != -1 )
     469    printf( "status = %d\n", status );
     470  assert( errno == EINVAL );
     471  puts( "Init: sigaction - EINVAL (signal = 0)" );
    468472 
    469473  status = sigaction( 999, &act, NULL );
     
    524528
    525529  status = pthread_kill( Init_id, 0 );
    526   assert( !status );
    527   puts( "Init: pthread_kill - SUCCESSFUL (signal = 0)" );
     530  if ( status != -1 )
     531    printf( "status = %d\n", status );
     532  assert( errno == EINVAL );
     533  puts( "Init: pthread_kill - EINVAL (signal = 0)" );
    528534
    529535  act.sa_handler = SIG_IGN;
     
    541547
    542548  status = kill( getpid(), 0 );
    543   assert( !status );
    544   puts( "Init: kill - SUCCESSFUL (signal = 0)" );
     549  if ( status != -1 )
     550    printf( "status = %d\n", status );
     551  assert( errno == EINVAL );
     552  puts( "Init: kill - EINVAL (signal = 0)" );
    545553
    546554  status = kill( getpid(), 999 );
  • c/src/tests/psxtests/psx04/psx04.scn

    r3c838f1a rfeedcdc  
     1
     2
    13*** POSIX TEST 4 ***
    24Init's ID is 0x0b010001
    35Init: sigemptyset -  set= 0x00000000
    46Init: sigfillset -  set= 0xffffffff
    5 Init: sigdelset - delete SIGUSR1 set= 0xffff7fff
     7Init: sigdelset - delete SIGUSR1 set= 0xfeffffff
    68Init: sigismember - FALSE since SIGUSR1 is not a member
    79Init: sigismember - TRUE since SIGUSR2 is a member
    810Init: send SIGUSR1 to process
    9 Signal: 16 caught by 0xc010001 (1)
     11Signal: 25 caught by 0xb010001 (1)
     12
    1013Init: Block SIGUSR1
    1114Init: send SIGUSR1 to process
    12 Signal: 16 caught by 0xc010001 (1)
     15Signal: 25 caught by 0xb010001 (1)
     16
    1317Init: Block SIGUSR1
    1418Init: Signals pending 0x00000000
    1519Init: send SIGUSR1 to process
    16 Init: Signals pending 0x00008000
     20Init: Signals pending 0x01000000
    1721Init: Unblock SIGUSR1
    18 Signal: 16 caught by 0xc010001 (2)
     22Signal: 25 caught by 0xb010001 (2)
     23
    1924Init: create a thread interested in SIGUSR1
    2025Init: Block SIGUSR1
     
    2328Task_1: sleeping for 5 seconds
    2429Init: send SIGUSR1 to process
    25 Init: Signals pending 0x00008000
     30Init: Signals pending 0x01000000
    2631Init: sleep so the other task can catch signal
    27 Signal: 16 caught by 0xc010002 (3)
     32Signal: 25 caught by 0xb010002 (3)
    2833Task_1: 4 seconds left
    2934Task_1: exit
     35
    3036Init: Unblock SIGALRM
    3137Init: Firing alarm in 5 seconds
    3238Init: 0 seconds left on previous alarm
    3339Init: Firing alarm in 2 seconds
    34 Init: 4 seconds left on previous alarm - MAY BE 5 SECONDS ALSO
     40Init: 5 seconds left on previous alarm
    3541Init: Wait 4 seconds for alarm
    36 Signal: 14 caught by 0xc010001 (4)
     42Signal: 14 caught by 0xb010001 (4)
    3743Init: 2 seconds left in sleep
     44
    3845Init: Block SIGUSR1 and SIGUSR2 only
    39 Init: Previous blocked set was 0x00008000
    40 Init: Current blocked set is 0x00018000
     46Init: Previous blocked set was 0x01000000
     47Init: Current blocked set is 0x03000000
    4148Init: Unblock all signals
    42 Init: Previous blocked set was 0x00018000
     49Init: Previous blocked set was 0x03000000
     50
    4351Init: create a thread to send Init SIGUSR1
    4452Init: sigsuspend for any signal
    4553Task_2: sending SIGUSR1
    4654Task_2: exit
    47 Signal: 16 caught by 0xc010001 (5)
    48 Init: awakended from sigsuspend status=00000016
     55Signal: 25 caught by 0xb010001 (5)
     56Init: awakended from sigsuspend status=-0000001
     57
    4958Init: create a thread to sent Process SIGUSR1 with SA_SIGINFO
    5059Init: sleep so the Task_3 can sigqueue SIGUSR1
    51 Task_3: sigqueue SIGUSR1 with value= 16
    52 Signal_info: 16 caught by 0xc010004 (6) si_signo= 16 si_code= 1 value= 16
    53 Task_3: sigwaitinfo SIGUSR1 with value= 16
     60Task_3: sigqueue SIGUSR1 with value= 25
     61Signal_info: 25 caught by 0xb010004 (6) si_signo= 25 si_code= 1 value= 25
     62
     63Task_3: sigwaitinfo SIGUSR1 with value= 25
    5464Init: sigqueue occurred
    5565Init: Block SIGUSR1
    5666Init: send SIGUSR1 to process
    5767Init: sleep so the Task_3 can receive SIGUSR1
    58 Task_3: si_signo= 16 si_code= 1 value= 0
     68Task_3: si_signo= 25 si_code= 1 value= 0
     69
    5970Task_3: sigwait SIGUSR1
    6071Init: Block SIGUSR1
    6172Init: send SIGUSR1 to process
    6273Init: sleep so the Task_3 can receive SIGUSR1
    63 Task_3: signo= 16
     74Task_3: signo= 25
     75
    6476Task_3: pause
    6577Init: Block SIGUSR2
    6678Init: send SIGUSR2 to process
    6779Init: sleep so the Task_3 can receive SIGUSR2
    68 Task_3: pause= 17
     80Task_3: pause= 26
     81
    6982Task_3: sending SIGUSR2
    7083Task_3: sleep so the Init task can reguest a signal
    7184Init: sigsuspend for any signal
    72 Init: awakended from sigsuspend status=17
     85Init: awakended from sigsuspend status=-1
     86
    7387Init: sigemptyset - EINVAL (set invalid)
    7488Init: sigfillset - EINVAL (set invalid)
    7589Init: sigaddset - EINVAL (set invalid)
    76 Init: sigaddset - SUCCESSFUL (signal = 0)
     90Init: sigaddset - EINVAL (signal = 0)
    7791Init: sigaddset - EINVAL (set invalid)
    7892Init: sigdelset - EINVAL (set invalid)
     
    8296Init: sigismember - SUCCESSFUL (signal = 0)
    8397Init: sigismember - EINVAL (signal invalid)
    84 Init: sigaction - SUCCESSFUL (signal = 0)
     98Init: sigaction - EINVAL (signal = 0)
    8599Init: sigaction - EINVAL (signal invalid)
    86100Init: sigaction - EINVAL (SIGKILL)
     
    92106Init: pthread_kill - EINVAL (sig invalid)
    93107Init: pthread_kill - ESRCH (signal SA_SIGINFO)
    94 Init: pthread_kill - SUCCESSFUL (signal = 0)
     108Init: pthread_kill - EINVAL (signal = 0)
    95109Init: pthread_kill - SUCCESSFUL (signal = SIG_IGN)
    96110Init: kill - ESRCH (pid invalid)
    97 Init: kill - SUCCESSFUL (signal = 0)
     111Init: kill - EINVAL (signal = 0)
    98112Init: kill - EINVAL (sig invalid)
    99113*** END OF POSIX TEST 4 ***
     114Unexpected trap (0x09) at address 0x0201bc74
     115data access exception at 0x00000008
Note: See TracChangeset for help on using the changeset viewer.