diff options
Diffstat (limited to 'testsuites/psxtests/psx08')
-rw-r--r-- | testsuites/psxtests/psx08/init.c | 16 | ||||
-rw-r--r-- | testsuites/psxtests/psx08/task2.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psx08/task3.c | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/testsuites/psxtests/psx08/init.c b/testsuites/psxtests/psx08/init.c index ec68b0c5fe..56ae5428e5 100644 --- a/testsuites/psxtests/psx08/init.c +++ b/testsuites/psxtests/psx08/init.c @@ -33,22 +33,22 @@ void *POSIX_Init( puts( "Init: pthread_detach - ESRCH (invalid id)" ); status = pthread_detach( (pthread_t) -1 ); - rtems_test_assert( status == ESRCH ); + rtems_test_assert( status == ESRCH ); /* detach this thread */ puts( "Init: pthread_detach self" ); status = pthread_detach( pthread_self() ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); /* create thread */ status = pthread_create( &Task1_id, NULL, Task_1, NULL ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); puts( "Init: pthread_join - ESRCH (invalid id)" ); status = pthread_join( (pthread_t) -1, &return_pointer ); - rtems_test_assert( status == ESRCH ); + rtems_test_assert( status == ESRCH ); puts( "Init: pthread_join - SUCCESSFUL" ); status = pthread_join( Task1_id, &return_pointer ); @@ -56,7 +56,7 @@ void *POSIX_Init( puts( "Init: returned from pthread_join through return" ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); if ( return_pointer == &Task1_id ) puts( "Init: pthread_join returned correct pointer" ); @@ -69,10 +69,10 @@ void *POSIX_Init( puts( "Init: creating two pthreads" ); status = pthread_create( &Task2_id, NULL, Task_2, NULL ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); status = pthread_create( &Task3_id, NULL, Task_3, NULL ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); puts( "Init: pthread_join - SUCCESSFUL" ); status = pthread_join( Task2_id, &return_pointer ); @@ -81,7 +81,7 @@ void *POSIX_Init( puts( "Init: returned from pthread_join through pthread_exit" ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); if ( return_pointer == &Task2_id ) puts( "Init: pthread_join returned correct pointer" ); diff --git a/testsuites/psxtests/psx08/task2.c b/testsuites/psxtests/psx08/task2.c index 612176404f..4ea3010844 100644 --- a/testsuites/psxtests/psx08/task2.c +++ b/testsuites/psxtests/psx08/task2.c @@ -37,13 +37,13 @@ void *Task_2( status = pthread_join( Init_id, NULL ); if ( status != EINVAL ) printf( "status = %d\n", status ); - rtems_test_assert( status == EINVAL ); + rtems_test_assert( status == EINVAL ); puts( "Task_2: join to self task (Init) -- EDEADLK" ); status = pthread_join( pthread_self(), NULL ); if ( status != EDEADLK ) printf( "status = %d\n", status ); - rtems_test_assert( status == EDEADLK ); + rtems_test_assert( status == EDEADLK ); puts( "Task_2: exitting" ); diff --git a/testsuites/psxtests/psx08/task3.c b/testsuites/psxtests/psx08/task3.c index e09c239e38..d7803656e4 100644 --- a/testsuites/psxtests/psx08/task3.c +++ b/testsuites/psxtests/psx08/task3.c @@ -33,7 +33,7 @@ void *Task_3( puts( "Task_3: returned from pthread_join" ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); if ( return_pointer == &Task2_id ) puts( "Task_3: pthread_join returned correct pointer" ); |