Changeset 42418a9 in rtems for testsuites/psxtests/psx08


Ignore:
Timestamp:
Aug 7, 1996, 10:00:57 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ecc912f4
Parents:
84b03316
Message:

added test cases for ESRCH from pthread_join and pthread_detach

File:
1 edited

Legend:

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

    r84b03316 r42418a9  
    3333  printf( "Init's ID is 0x%08x\n", Init_id );
    3434
     35  puts( "Init: pthread_detach - ESRCH (invalid id)" );
     36  status = pthread_detach( -1 );
     37  assert( status == ESRCH );
     38
    3539  /* detach this thread */
    3640
     
    4852  assert( !status );
    4953 
     54  puts( "Init: pthread_join - ESRCH (invalid id)" );
     55  status = pthread_join( -1, &return_pointer );
     56  assert( status == ESRCH );
     57
    5058  puts( "Init: pthread_join - SUCCESSFUL" );
    5159  status = pthread_join( Task_id, &return_pointer );
     60  /* assert is below comment */
    5261
    5362     /* switch to Task 1 */
Note: See TracChangeset for help on using the changeset viewer.