diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-10-21 21:22:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-10-21 21:22:25 +0000 |
commit | 33c46f1a7014a1aa2e403aa7d089259cd09508b1 (patch) | |
tree | 2e9d13a2052f162a11cab13a84a4e557c62e8745 /testsuites/psxtests/psx06 | |
parent | 15d5b9add71ed209ee8a1bce2009e8b82e3e4a55 (diff) |
2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c,
psx04/task1.c, psx04/task2.c, psx04/task3.c, psx05/init.c,
psx05/task.c, psx05/task2.c, psx05/task3.c, psx06/init.c,
psx06/task.c, psx06/task2.c, psx07/init.c, psx08/init.c,
psx08/task2.c, psx08/task3.c, psx09/init.c, psx10/init.c,
psx10/task.c, psx10/task2.c, psx10/task3.c, psx11/init.c,
psx11/task.c, psx12/init.c, psxalarm01/init.c, psxbarrier01/test.c,
psxcancel01/init.c, psxchroot01/test.c, psxitimer/init.c,
psxkey01/task.c, psxkey02/init.c, psxkey03/init.c, psxmount/test.c,
psxmsgq01/init.c, psxmsgq03/init.c, psxmsgq04/init.c,
psxrwlock01/test.c, psxsem01/init.c, psxsignal01/init.c,
psxsignal01/task1.c, psxsignal02/init.c, psxsignal03/init.c,
psxsignal05/init.c, psxspin01/test.c, psxspin02/test.c,
psxstack01/init.c, psxstack02/init.c, psxualarm/init.c: Eliminate
double space after parenthesis on rtems_test_assert().
Diffstat (limited to 'testsuites/psxtests/psx06')
-rw-r--r-- | testsuites/psxtests/psx06/init.c | 20 | ||||
-rw-r--r-- | testsuites/psxtests/psx06/task.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psx06/task2.c | 4 |
3 files changed, 14 insertions, 14 deletions
diff --git a/testsuites/psxtests/psx06/init.c b/testsuites/psxtests/psx06/init.c index 7d19e3f7a2..ee1c636763 100644 --- a/testsuites/psxtests/psx06/init.c +++ b/testsuites/psxtests/psx06/init.c @@ -52,10 +52,10 @@ void *POSIX_Init( /* create a couple of threads */ status = pthread_create( &Task_id, NULL, Task_1, NULL ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); status = pthread_create( &Task2_id, NULL, Task_2, NULL ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); /* create a key */ @@ -66,31 +66,31 @@ void *POSIX_Init( status = pthread_key_create( &Key_id, Key_destructor ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); printf( "Destructor invoked %d times\n", Destructor_invoked ); puts( "Init: pthread_key_create - EAGAIN (too many keys)" ); status = pthread_key_create( &Key_id, Key_destructor ); - rtems_test_assert( status == EAGAIN ); + rtems_test_assert( status == EAGAIN ); puts( "Init: pthread_setspecific - EINVAL (invalid key)" ); status = pthread_setspecific( (pthread_t) -1, &Data_array[ 0 ] ); - rtems_test_assert( status == EINVAL ); + rtems_test_assert( status == EINVAL ); puts( "Init: pthread_getspecific - EINVAL (invalid key)" ); key_data = pthread_getspecific( (pthread_t) -1 ); - rtems_test_assert( !key_data ); + rtems_test_assert( !key_data ); puts( "Init: pthread_key_delete - EINVAL (invalid key)" ); status = pthread_key_delete( (pthread_t) -1 ); - rtems_test_assert( status == EINVAL ); + rtems_test_assert( status == EINVAL ); printf( "Init: Setting the key to %d\n", 0 ); status = pthread_setspecific( Key_id, &Data_array[ 0 ] ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); /* switch to task 1 */ @@ -101,7 +101,7 @@ void *POSIX_Init( remaining = sleep( 3 ); if ( remaining ) printf( "seconds remaining = %d\n", remaining ); - rtems_test_assert( !remaining ); + rtems_test_assert( !remaining ); /* switch to task 1 */ @@ -111,7 +111,7 @@ void *POSIX_Init( status = pthread_key_delete( Key_id ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); printf( "Destructor invoked %d times\n", Destructor_invoked ); diff --git a/testsuites/psxtests/psx06/task.c b/testsuites/psxtests/psx06/task.c index e29f823374..40dca84c45 100644 --- a/testsuites/psxtests/psx06/task.c +++ b/testsuites/psxtests/psx06/task.c @@ -32,14 +32,14 @@ void *Task_1( status = pthread_setspecific( Key_id, &Data_array[ 1 ] ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); key_data = pthread_getspecific( Key_id ); printf( "Task_1: Got the key value of %ld\n", (unsigned long) ((uint32_t *)key_data - Data_array) ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); puts( "Task_1: exitting" ); pthread_exit( NULL ); diff --git a/testsuites/psxtests/psx06/task2.c b/testsuites/psxtests/psx06/task2.c index de981e5a26..a5a46781a8 100644 --- a/testsuites/psxtests/psx06/task2.c +++ b/testsuites/psxtests/psx06/task2.c @@ -33,14 +33,14 @@ void *Task_2( status = pthread_setspecific( Key_id, &Data_array[ 2 ] ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); key_data = pthread_getspecific( Key_id ); printf( "Task_2: Got the key value of %ld\n", (unsigned long) ((uint32_t *)key_data - Data_array) ); if ( status ) printf( "status = %d\n", status ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); puts( "Task2: exitting" ); pthread_exit( NULL ); |