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 | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psx08/task3.c | 4 |
3 files changed, 13 insertions, 13 deletions
diff --git a/testsuites/psxtests/psx08/init.c b/testsuites/psxtests/psx08/init.c index 827014604d..ec68b0c5fe 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 ); - assert( status == ESRCH ); + rtems_test_assert( status == ESRCH ); /* detach this thread */ puts( "Init: pthread_detach self" ); status = pthread_detach( pthread_self() ); - assert( !status ); + rtems_test_assert( !status ); /* create thread */ status = pthread_create( &Task1_id, NULL, Task_1, NULL ); - assert( !status ); + rtems_test_assert( !status ); puts( "Init: pthread_join - ESRCH (invalid id)" ); status = pthread_join( (pthread_t) -1, &return_pointer ); - 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 ); - 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 ); - assert( !status ); + rtems_test_assert( !status ); status = pthread_create( &Task3_id, NULL, Task_3, NULL ); - 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 ); - 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 d7f8fc003c..612176404f 100644 --- a/testsuites/psxtests/psx08/task2.c +++ b/testsuites/psxtests/psx08/task2.c @@ -8,7 +8,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -37,13 +37,13 @@ void *Task_2( status = pthread_join( Init_id, NULL ); if ( status != EINVAL ) printf( "status = %d\n", status ); - 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 ); - 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 24aa724fc7..e09c239e38 100644 --- a/testsuites/psxtests/psx08/task3.c +++ b/testsuites/psxtests/psx08/task3.c @@ -8,7 +8,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -33,7 +33,7 @@ void *Task_3( puts( "Task_3: returned from pthread_join" ); if ( status ) printf( "status = %d\n", status ); - assert( !status ); + rtems_test_assert( !status ); if ( return_pointer == &Task2_id ) puts( "Task_3: pthread_join returned correct pointer" ); |