Changeset d0b5249 in rtems
- Timestamp:
- 08/09/96 18:47:58 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c7dd091f
- Parents:
- f643e230
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/psxtests/psx01/task.c
rf643e230 rd0b5249 26 26 puts( "Test_init_routine: invoked" ); 27 27 } 28 28 29 29 30 30 void *Task_1_through_3( … … 32 32 ) 33 33 { 34 int status;34 int status; 35 35 pthread_once_t once = PTHREAD_ONCE_INIT; 36 37 puts( "Task_1: sched_yield to Init" ); 38 status = sched_yield(); 39 assert( !status ); 40 41 /* switch to Task_1 */ 42 43 /* now do some real testing */ 36 44 37 45 empty_line(); … … 46 54 status = pthread_equal( Task_id, Task_id ); 47 55 if ( status ) 48 puts( "Task_1: pthread_equal match case passed" );56 puts( "Task_1: pthread_equal - match case passed" ); 49 57 assert( status ); 50 58 51 59 status = pthread_equal( Init_id, Task_id ); 52 60 if ( !status ) 53 puts( "Task_1: pthread_equal different case passed" );61 puts( "Task_1: pthread_equal - different case passed" ); 54 62 assert( !status ); 55 63 56 puts( "Task_1: pthread_equal first id bad" );64 puts( "Task_1: pthread_equal - first id bad" ); 57 65 status = pthread_equal( -1, Task_id ); 58 66 assert( !status ); 59 67 60 puts( "Task_1: pthread_equal second id bad" );68 puts( "Task_1: pthread_equal - second id bad" ); 61 69 status = pthread_equal( Init_id, -1 ); 62 70 assert( !status ); -
testsuites/psxtests/psx01/task.c
rf643e230 rd0b5249 26 26 puts( "Test_init_routine: invoked" ); 27 27 } 28 28 29 29 30 30 void *Task_1_through_3( … … 32 32 ) 33 33 { 34 int status;34 int status; 35 35 pthread_once_t once = PTHREAD_ONCE_INIT; 36 37 puts( "Task_1: sched_yield to Init" ); 38 status = sched_yield(); 39 assert( !status ); 40 41 /* switch to Task_1 */ 42 43 /* now do some real testing */ 36 44 37 45 empty_line(); … … 46 54 status = pthread_equal( Task_id, Task_id ); 47 55 if ( status ) 48 puts( "Task_1: pthread_equal match case passed" );56 puts( "Task_1: pthread_equal - match case passed" ); 49 57 assert( status ); 50 58 51 59 status = pthread_equal( Init_id, Task_id ); 52 60 if ( !status ) 53 puts( "Task_1: pthread_equal different case passed" );61 puts( "Task_1: pthread_equal - different case passed" ); 54 62 assert( !status ); 55 63 56 puts( "Task_1: pthread_equal first id bad" );64 puts( "Task_1: pthread_equal - first id bad" ); 57 65 status = pthread_equal( -1, Task_id ); 58 66 assert( !status ); 59 67 60 puts( "Task_1: pthread_equal second id bad" );68 puts( "Task_1: pthread_equal - second id bad" ); 61 69 status = pthread_equal( Init_id, -1 ); 62 70 assert( !status );
Note: See TracChangeset
for help on using the changeset viewer.