summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 03:33:25 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 03:33:25 +0000
commitb1274bd94c94520ed9402f85c949976d7008093e (patch)
tree6ed7755c34e5fcccbe06ff095017a4399de180ff /testsuites/psxtests
parentWhitespace removal. (diff)
downloadrtems-b1274bd94c94520ed9402f85c949976d7008093e.tar.bz2
Whitespace removal.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psx01/init.c4
-rw-r--r--testsuites/psxtests/psx05/init.c6
-rw-r--r--testsuites/psxtests/psx07/init.c4
-rw-r--r--testsuites/psxtests/psx07/task.c4
-rw-r--r--testsuites/psxtests/psx09/init.c2
-rw-r--r--testsuites/psxtests/psx14/init.c6
-rw-r--r--testsuites/psxtests/psxautoinit01/init.c4
-rw-r--r--testsuites/psxtests/psxautoinit02/init.c2
-rw-r--r--testsuites/psxtests/psxbarrier01/test.c2
-rw-r--r--testsuites/psxtests/psxcancel/init.c2
-rw-r--r--testsuites/psxtests/psxcleanup/psxcleanup.c8
-rw-r--r--testsuites/psxtests/psxcleanup/system.h2
-rw-r--r--testsuites/psxtests/psxcleanup01/init.c2
-rw-r--r--testsuites/psxtests/psxclock/init.c6
-rw-r--r--testsuites/psxtests/psxcond01/init.c2
-rw-r--r--testsuites/psxtests/psxenosys/init.c2
-rw-r--r--testsuites/psxtests/psxfatal_support/init.c2
-rw-r--r--testsuites/psxtests/psxkey01/init.c4
-rw-r--r--testsuites/psxtests/psxkey02/init.c6
-rw-r--r--testsuites/psxtests/psxkey03/init.c8
-rw-r--r--testsuites/psxtests/psxmsgq01/init.c4
-rw-r--r--testsuites/psxtests/psxmsgq02/init.c4
-rw-r--r--testsuites/psxtests/psxmsgq03/init.c2
-rw-r--r--testsuites/psxtests/psxmsgq04/init.c2
-rw-r--r--testsuites/psxtests/psxmutexattr01/init.c2
-rw-r--r--testsuites/psxtests/psxrdwrv/test.c32
-rw-r--r--testsuites/psxtests/psxrwlock01/test.c8
-rw-r--r--testsuites/psxtests/psxsem01/init.c2
-rw-r--r--testsuites/psxtests/psxsignal01/init.c6
-rw-r--r--testsuites/psxtests/psxsignal02/init.c4
-rw-r--r--testsuites/psxtests/psxsignal03/init.c6
-rw-r--r--testsuites/psxtests/psxspin02/test.c2
-rw-r--r--testsuites/psxtests/psxstack01/init.c2
-rw-r--r--testsuites/psxtests/psxsysconf/init.c4
-rw-r--r--testsuites/psxtests/psxtime/test.c4
-rw-r--r--testsuites/psxtests/psxtimer01/psxtimer.c20
-rw-r--r--testsuites/psxtests/psxtimer02/psxtimer.c2
-rw-r--r--testsuites/psxtests/psxusleep/init.c2
38 files changed, 93 insertions, 93 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index f2dda08db7..f44b5d3105 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -73,12 +73,12 @@ void *POSIX_Init(
status = sched_rr_get_interval( 4, &tr );
rtems_test_assert( status == -1 );
rtems_test_assert( errno == ESRCH );
-
+
puts( "Init: sched_rr_get_interval -- EINVAL (invalid interval pointer)" );
status = sched_rr_get_interval( getpid(), NULL );
rtems_test_assert( status == -1 );
rtems_test_assert( errno == EINVAL );
-
+
/* print the round robin time quantum */
status = sched_rr_get_interval( getpid(), &tr );
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index 906f95b986..b8e3fc2a0f 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -595,7 +595,7 @@ void *POSIX_Init(
priority = sched_get_priority_max( SCHED_FIFO );
priority = (priority == 254) ? 200 : 13;
-
+
printf( "Init: pthread_mutex_setprioceiling - new ceiling = %d\n", priority );
status = pthread_mutex_setprioceiling( &Mutex2_id, priority, &old_ceiling );
assert( !status );
@@ -669,7 +669,7 @@ void *POSIX_Init(
status = pthread_mutex_destroy( &Mutex2_id );
if( status )
printf( "status mutex destroy:%d\n", status );
-
+
status = pthread_mutexattr_init( &attr );
if( status )
printf( "status mutexattr:%d\n", status );
@@ -679,7 +679,7 @@ void *POSIX_Init(
if ( status )
printf( "status recursive mutex :%d\n", status );
assert( !status );
-
+
puts( "*** END OF POSIX TEST 5 ***" );
rtems_test_exit( 0 );
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index 7b57d0df6d..d5ba806f66 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/psxtests/psx07/init.c
@@ -125,7 +125,7 @@ void *POSIX_Init(
/* reset all the fields */
status = pthread_attr_init( &attr );
posix_service_failed( status, "pthread_attr_init");
-
+
attr.stacksize = rtems_configuration_get_work_space_size() * 10;
puts( "Init - pthread_create - EAGAIN (stacksize too large)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
@@ -192,7 +192,7 @@ void *POSIX_Init(
puts( "Init - pthread_create - ENOTSUP (unsupported system contention scope)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
- fatal_directive_check_status_only( status, ENOTSUP,
+ fatal_directive_check_status_only( status, ENOTSUP,
"unsupported system contention scope" );
status = pthread_attr_init( &attr );
diff --git a/testsuites/psxtests/psx07/task.c b/testsuites/psxtests/psx07/task.c
index 281436f500..d288b88b40 100644
--- a/testsuites/psxtests/psx07/task.c
+++ b/testsuites/psxtests/psx07/task.c
@@ -46,7 +46,7 @@ void *Task_2(
*/
/*
- * Consume time so the cpu budget callout will run.
+ * Consume time so the cpu budget callout will run.
*
* DO NOT BLOCK!!!
*/
@@ -56,7 +56,7 @@ void *Task_2(
now = time(&now);
} while (start == now);
start = time(&start);
-
+
printf( "Time elapsed Task_2: %2d (seconds)\n", i++ );
}
diff --git a/testsuites/psxtests/psx09/init.c b/testsuites/psxtests/psx09/init.c
index a2e995316a..bb47925221 100644
--- a/testsuites/psxtests/psx09/init.c
+++ b/testsuites/psxtests/psx09/init.c
@@ -174,7 +174,7 @@ void *POSIX_Init(
}
now = time( &now );
- if ( now - start > 3 )
+ if ( now - start > 3 )
break;
priority = schedparam.sched_priority;
diff --git a/testsuites/psxtests/psx14/init.c b/testsuites/psxtests/psx14/init.c
index d740cb1255..f880aebd99 100644
--- a/testsuites/psxtests/psx14/init.c
+++ b/testsuites/psxtests/psx14/init.c
@@ -31,7 +31,7 @@ void *POSIX_Init(
puts( "Setting current thread name to Justin" );
status = rtems_object_set_name( pthread_self(), "Justin" );
directive_failed( status, "rtems_object_set_name" );
-
+
ptr = rtems_object_get_name( pthread_self(), 128, name );
printf( "rtems_object_get_name returned (%s) for init thread\n", ptr );
@@ -39,7 +39,7 @@ void *POSIX_Init(
puts( "Setting current thread name to Jordan" );
status = rtems_object_set_name( pthread_self(), "Jordan" );
directive_failed( status, "rtems_object_set_name" );
-
+
ptr = rtems_object_get_name( pthread_self(), 128, name );
printf( "rtems_object_get_name returned (%s) for init thread\n", ptr );
@@ -52,7 +52,7 @@ void *POSIX_Init(
printf( "rtems_object_get_api_name(POSIX_API) = %s\n",
rtems_object_get_api_name(OBJECTS_POSIX_API) );
- printf("rtems_object_get_api_class_name(POSIX_API, POSIX_KEYS) = %s\n",
+ printf("rtems_object_get_api_class_name(POSIX_API, POSIX_KEYS) = %s\n",
rtems_object_get_api_class_name( OBJECTS_POSIX_API, OBJECTS_POSIX_KEYS)
);
diff --git a/testsuites/psxtests/psxautoinit01/init.c b/testsuites/psxtests/psxautoinit01/init.c
index 67c28e3456..2296f9a86b 100644
--- a/testsuites/psxtests/psxautoinit01/init.c
+++ b/testsuites/psxtests/psxautoinit01/init.c
@@ -34,7 +34,7 @@ void *POSIX_Init(
puts( "Init - pthread_mutex_lock - auto initialize - EINVAL" );
sc = pthread_mutex_lock( &mutex2 );
fatal_posix_service_status( sc, EINVAL, "mutex lock EINVAL" );
-
+
puts( "Init - pthread_mutex_unlock - OK" );
sc = pthread_mutex_unlock( &mutex1 );
fatal_posix_service_status( sc, 0, "mutex unlock OK" );
@@ -53,7 +53,7 @@ void *POSIX_Init(
puts( "Init - pthread_mutex_getprioceiling - auto initialize - EINVAL" );
sc = pthread_mutex_getprioceiling( &mutex2, &prioceiling );
fatal_posix_service_status( sc, EINVAL, "mutex getprioceiling EINVAL" );
-
+
puts( "Init - pthread_mutex_destroy - OK" );
sc = pthread_mutex_destroy( &mutex1 );
fatal_posix_service_status( sc, 0, "mutex destroy OK" );
diff --git a/testsuites/psxtests/psxautoinit02/init.c b/testsuites/psxtests/psxautoinit02/init.c
index 53ec797c00..80af42ed58 100644
--- a/testsuites/psxtests/psxautoinit02/init.c
+++ b/testsuites/psxtests/psxautoinit02/init.c
@@ -32,7 +32,7 @@ void *POSIX_Init(
puts( "Init - pthread_cond_broadcast - auto initialize - EINVAL" );
sc = pthread_cond_broadcast( &cond2 );
fatal_posix_service_status( sc, EINVAL, "cond lock EINVAL" );
-
+
puts( "Init - pthread_cond_destroy - OK" );
sc = pthread_cond_destroy( &cond1 );
fatal_posix_service_status( sc, 0, "cond destroy OK" );
diff --git a/testsuites/psxtests/psxbarrier01/test.c b/testsuites/psxtests/psxbarrier01/test.c
index b583631c7a..b128c27484 100644
--- a/testsuites/psxtests/psxbarrier01/test.c
+++ b/testsuites/psxtests/psxbarrier01/test.c
@@ -86,7 +86,7 @@ int main(
/*************** NOT INITIALIZED CHECKS *****************/
/* cheat visibility */
- attr.is_initialized = 0;
+ attr.is_initialized = 0;
puts( "pthread_barrierattr_setpshared( &attr, shared ) -- EINVAL" );
status = pthread_barrierattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
assert( status == EINVAL );
diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c
index 7c75a7f4bf..96341f100a 100644
--- a/testsuites/psxtests/psxcancel/init.c
+++ b/testsuites/psxtests/psxcancel/init.c
@@ -31,7 +31,7 @@ void *countTaskDeferred(void *ignored)
{
int i=0;
int type,state;
-
+
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &type);
pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &state);
while (1) {
diff --git a/testsuites/psxtests/psxcleanup/psxcleanup.c b/testsuites/psxtests/psxcleanup/psxcleanup.c
index b1bc0a94f8..9005973a3c 100644
--- a/testsuites/psxtests/psxcleanup/psxcleanup.c
+++ b/testsuites/psxtests/psxcleanup/psxcleanup.c
@@ -155,7 +155,7 @@ void initialize_lock_t(lock_t *l)
{
pthread_mutexattr_t mutexattr; /* mutex attributes */
pthread_condattr_t condattr; /* condition attributes */
-
+
if (pthread_mutexattr_init (&mutexattr) != 0) {
perror ("Error in mutex attribute init\n");
}
@@ -250,12 +250,12 @@ void *POSIX_Init(
sleep(1);
/*************** ERROR CASES ***************/
- puts("Call pthread_cleanup_push with NULL handler");
+ puts("Call pthread_cleanup_push with NULL handler");
pthread_cleanup_push(NULL, NULL);
- puts("Call pthread_cleanup_pop with no push");
+ puts("Call pthread_cleanup_pop with no push");
pthread_cleanup_pop(1);
-
+
/*************** END OF TEST *****************/
puts( "*** END OF POSIX CLEANUP TEST ***\n" );
rtems_test_exit(0);
diff --git a/testsuites/psxtests/psxcleanup/system.h b/testsuites/psxtests/psxcleanup/system.h
index 5baf542c60..183c6db068 100644
--- a/testsuites/psxtests/psxcleanup/system.h
+++ b/testsuites/psxtests/psxcleanup/system.h
@@ -61,5 +61,5 @@ void *task_c(
TEST_EXTERN pthread_t Init_id;
TEST_EXTERN pthread_t Task_id;
-#undef TEST_EXTERN
+#undef TEST_EXTERN
/* end of include file */
diff --git a/testsuites/psxtests/psxcleanup01/init.c b/testsuites/psxtests/psxcleanup01/init.c
index 4225c32d82..309bce7445 100644
--- a/testsuites/psxtests/psxcleanup01/init.c
+++ b/testsuites/psxtests/psxcleanup01/init.c
@@ -31,7 +31,7 @@ void *POSIX_Init(
puts( "Init - pthread_cleanup_pop - do not execute" );
pthread_cleanup_pop(0);
-
+
puts( "*** END OF POSIX CLEANUP TEST 01 ***\n" );
rtems_test_exit(0);
}
diff --git a/testsuites/psxtests/psxclock/init.c b/testsuites/psxtests/psxclock/init.c
index 1930bfa073..9f1e4615fc 100644
--- a/testsuites/psxtests/psxclock/init.c
+++ b/testsuites/psxtests/psxclock/init.c
@@ -17,7 +17,7 @@ void check_enosys(int status);
void check_enosys(int status)
{
- if ( (status == -1) && (errno == ENOSYS) )
+ if ( (status == -1) && (errno == ENOSYS) )
return;
puts( "ERROR -- did not return ENOSYS as expected" );
rtems_test_exit(0);
@@ -106,7 +106,7 @@ rtems_task Init(
remaining = sleep( 3 );
rtems_test_assert( !remaining );
-
+
/* print new times to make sure it has changed and we can get the realtime */
sc = clock_gettime( CLOCK_PROCESS_CPUTIME, &tv );
rtems_test_assert( !sc );
@@ -211,7 +211,7 @@ rtems_task Init(
delay_request.tv_nsec = 35000000;
sc = nanosleep( &delay_request, NULL );
assert( !sc );
-
+
/* print the current real time again */
sc = clock_gettime( CLOCK_REALTIME, &tv );
rtems_test_assert( !sc );
diff --git a/testsuites/psxtests/psxcond01/init.c b/testsuites/psxtests/psxcond01/init.c
index 29cd1a6e1c..7cdac51c88 100644
--- a/testsuites/psxtests/psxcond01/init.c
+++ b/testsuites/psxtests/psxcond01/init.c
@@ -54,7 +54,7 @@ void *POSIX_Init(
puts( "Init - pthread_create - OK" );
sc = pthread_create( &Thread, NULL, BlockingThread, NULL );
fatal_posix_service_status( sc, 0, "Thread create ok" );
-
+
puts( "Init - sleep to let BlockingThread run" );
sleep(1);
diff --git a/testsuites/psxtests/psxenosys/init.c b/testsuites/psxtests/psxenosys/init.c
index 035601a21b..ab44ac8dd3 100644
--- a/testsuites/psxtests/psxenosys/init.c
+++ b/testsuites/psxtests/psxenosys/init.c
@@ -38,7 +38,7 @@ void check_enosys(int status);
void check_enosys(int status)
{
- if ( (status == -1) && (errno == ENOSYS) )
+ if ( (status == -1) && (errno == ENOSYS) )
return;
puts( "ERROR -- did not return ENOSYS as expected" );
rtems_test_exit(0);
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c
index 7b8cdc8583..ea1559c920 100644
--- a/testsuites/psxtests/psxfatal_support/init.c
+++ b/testsuites/psxtests/psxfatal_support/init.c
@@ -142,7 +142,7 @@ void Fatal_extension(
else
printk( "ERROR==> Fatal Extension is internal set to FALSE expected TRUE\n" );
}
-
+
if ( error != FATAL_ERROR_EXPECTED_ERROR ) {
printk( "ERROR==> Fatal Error Expected (");
Put_Error( source, FATAL_ERROR_EXPECTED_ERROR );
diff --git a/testsuites/psxtests/psxkey01/init.c b/testsuites/psxtests/psxkey01/init.c
index 1213ff582d..640f496c7d 100644
--- a/testsuites/psxtests/psxkey01/init.c
+++ b/testsuites/psxtests/psxkey01/init.c
@@ -43,12 +43,12 @@ void *POSIX_Init(
printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
Allocate_majority_of_workspace(84);
-
+
puts("Init: pthread_key_create - ENOMEM (Workspace not available)");
empty_line();
status = pthread_key_create( &Key_id[0], Key_destructor );
fatal_directive_check_status_only( status, ENOMEM, "no workspace available" );
-
+
puts( "*** END OF POSIX KEY 01 TEST ***" );
rtems_test_exit( 0 );
diff --git a/testsuites/psxtests/psxkey02/init.c b/testsuites/psxtests/psxkey02/init.c
index c0b9dc1867..246e1d18f2 100644
--- a/testsuites/psxtests/psxkey02/init.c
+++ b/testsuites/psxtests/psxkey02/init.c
@@ -27,7 +27,7 @@ void *POSIX_Init(
void *alloced;
puts( "\n\n*** TEST KEY 02 ***" );
-
+
puts( "Init - rtems_workspace_get_information - OK" );
sb = rtems_workspace_get_information( &start );
assert( sb );
@@ -63,10 +63,10 @@ void *POSIX_Init(
puts( "Init - pthread_key_create - ENOMEM" );
while (1) {
-
+
sb = rtems_workspace_allocate( to_alloc, &alloced );
assert( sb );
-
+
sc = pthread_key_create( &key, NULL );
/* free the memory we snagged, then check the status */
diff --git a/testsuites/psxtests/psxkey03/init.c b/testsuites/psxtests/psxkey03/init.c
index 02d45da610..d69059072e 100644
--- a/testsuites/psxtests/psxkey03/init.c
+++ b/testsuites/psxtests/psxkey03/init.c
@@ -31,7 +31,7 @@ void *Test_Thread(
puts( "Test_Thread - pthread_setspecific - OK" );
sc = pthread_setspecific( Key, key_value );
assert( !sc );
-
+
puts( "Test_Thread - pthread_exit to run key destructors - OK" );
return NULL;
}
@@ -45,13 +45,13 @@ void *POSIX_Init(
struct timespec delay_request;
puts( "\n\n*** TEST KEY 03 ***" );
-
+
/*
* Key with NULL destructor
*/
puts( "Init - pthread_key_create with NULL destructor - OK" );
sc = pthread_key_create( &Key, NULL );
- assert( !sc );
+ assert( !sc );
puts( "Init - pthread_create - OK" );
sc = pthread_create( &thread, NULL, Test_Thread, &sc );
@@ -73,7 +73,7 @@ void *POSIX_Init(
destructor_ran = false;
puts( "Init - pthread_key_create with non-NULL destructor - OK" );
sc = pthread_key_create( &Key, destructor );
- assert( !sc );
+ assert( !sc );
puts( "Init - pthread_create - OK" );
sc = pthread_create( &thread, NULL, Test_Thread, NULL );
diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c
index 69c3c918c0..bc4ae8dfc0 100644
--- a/testsuites/psxtests/psxmsgq01/init.c
+++ b/testsuites/psxtests/psxmsgq01/init.c
@@ -104,7 +104,7 @@ void Validate_attributes(
#define Get_Queue_Name( i ) Test_q[i].name
char *Build_Queue_Name( int i ) {
- static char Queue_Name[PATH_MAX + 2];
+ static char Queue_Name[PATH_MAX + 2];
sprintf(Queue_Name,"mq%d", i+1 );
return Queue_Name;
@@ -1248,7 +1248,7 @@ void *POSIX_Init(
verify_with_threads();
verify_mq_receive();
verify_mq_send();
-
+
puts( "*** END OF POSIX MESSAGE QUEUE TEST ***" );
rtems_test_exit( 0 );
diff --git a/testsuites/psxtests/psxmsgq02/init.c b/testsuites/psxtests/psxmsgq02/init.c
index 4ddb142eca..caaa5ff864 100644
--- a/testsuites/psxtests/psxmsgq02/init.c
+++ b/testsuites/psxtests/psxmsgq02/init.c
@@ -45,12 +45,12 @@ void *POSIX_Init(
printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
Allocate_majority_of_workspace(NAME_MAX);
-
+
attr.mq_maxmsg = MAXMSG;
attr.mq_msgsize = MSGSIZE;
puts("Init: mq_open - Workspace not available - ENOMEM");
mq = mq_open( Get_Longest_Name(), O_CREAT, 0x777, &attr );
- fatal_posix_service_status_errno(mq, ENOMEM, "no workspace available");
+ fatal_posix_service_status_errno(mq, ENOMEM, "no workspace available");
puts( "*** END OF POSIX MESSAGE QUEUE 02 TEST ***" );
rtems_test_exit( 0 );
diff --git a/testsuites/psxtests/psxmsgq03/init.c b/testsuites/psxtests/psxmsgq03/init.c
index 0d8c275f6f..2c941da090 100644
--- a/testsuites/psxtests/psxmsgq03/init.c
+++ b/testsuites/psxtests/psxmsgq03/init.c
@@ -98,7 +98,7 @@ void *POSIX_Init(
);
rtems_test_exit( 0 );
}
-
+
puts( "Init - mq_send from ISR returned correct status" );
puts( "*** END OF POSIX MESSAGE QUEUE TEST 3 ***" );
diff --git a/testsuites/psxtests/psxmsgq04/init.c b/testsuites/psxtests/psxmsgq04/init.c
index 81c2421cf9..599a3f213f 100644
--- a/testsuites/psxtests/psxmsgq04/init.c
+++ b/testsuites/psxtests/psxmsgq04/init.c
@@ -92,7 +92,7 @@ void *POSIX_Init(
while ( attr.mq_msgsize > 0 ) {
sb = rtems_workspace_allocate( to_alloc, &alloced );
assert( sb );
-
+
second_Queue = mq_open(name,O_CREAT | O_RDWR, 0x777, &attr );
/* free the memory we snagged, then check the status */
diff --git a/testsuites/psxtests/psxmutexattr01/init.c b/testsuites/psxtests/psxmutexattr01/init.c
index 8dda8daa69..24f0cd2637 100644
--- a/testsuites/psxtests/psxmutexattr01/init.c
+++ b/testsuites/psxtests/psxmutexattr01/init.c
@@ -84,7 +84,7 @@ void *POSIX_Init(
printf( "Init - pthread_mutexattr_settype - %s\n", TypesToCheck[i].name );
sc = pthread_mutexattr_settype( &attr, TypesToCheck[i].type );
rtems_test_assert( sc == TypesToCheck[i].status );
-
+
type = -2;
if ( TypesToCheck[i].status == 0 ) {
diff --git a/testsuites/psxtests/psxrdwrv/test.c b/testsuites/psxtests/psxrdwrv/test.c
index aa583bc61f..ae47ea1674 100644
--- a/testsuites/psxtests/psxrdwrv/test.c
+++ b/testsuites/psxtests/psxrdwrv/test.c
@@ -53,7 +53,7 @@ unsigned char ReadBuffer[MAX_BUFFER];
*
* Fill the test buffer.
*
- * Returns: TRUE if buffer filled
+ * Returns: TRUE if buffer filled
* FALSE if buffer failed to fill
*
*/
@@ -88,7 +88,7 @@ int doFunctionalTest(void) {
struct iovec wrvec[4];
int rc;
-
+
/*
* Setup the iovec
*/
@@ -216,7 +216,7 @@ int doErrorTest(void)
rc = writev(fd, NULL, 4);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "writev error 2: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -225,7 +225,7 @@ int doErrorTest(void)
rc = readv(fd, NULL, 4);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "readv error 2: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -234,7 +234,7 @@ int doErrorTest(void)
rc = writev(fd, vec, 0);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "writev error 3: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -243,7 +243,7 @@ int doErrorTest(void)
rc = readv(fd, vec, 0);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "readv error 3: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -252,7 +252,7 @@ int doErrorTest(void)
rc = writev(fd, vec, -2);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "writev error 4: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -261,7 +261,7 @@ int doErrorTest(void)
rc = readv(fd, vec, -100);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "readv error 4: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -274,7 +274,7 @@ int doErrorTest(void)
rc = writev(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "writev error 5: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -287,7 +287,7 @@ int doErrorTest(void)
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "readv error 5: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -300,7 +300,7 @@ int doErrorTest(void)
rc = writev(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "writev error 6: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -313,7 +313,7 @@ int doErrorTest(void)
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "readv error 6: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -328,7 +328,7 @@ int doErrorTest(void)
rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "writev error 7: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -341,7 +341,7 @@ int doErrorTest(void)
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) {
printf( "readv error 7: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -354,7 +354,7 @@ int doErrorTest(void)
rc = writev(fd, vec, 2);
if ( (rc != 0) ) {
printf( "writev error 8: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
@@ -367,7 +367,7 @@ int doErrorTest(void)
rc = readv(fd, vec, 2);
if ( (rc != 0) ) {
printf( "readv error 8: %d=%s\n", errno, strerror(errno) );
- fclose(fp);
+ fclose(fp);
return FALSE;
}
diff --git a/testsuites/psxtests/psxrwlock01/test.c b/testsuites/psxtests/psxrwlock01/test.c
index 567d15d3da..d7505bafa1 100644
--- a/testsuites/psxtests/psxrwlock01/test.c
+++ b/testsuites/psxtests/psxrwlock01/test.c
@@ -110,7 +110,7 @@ int main(
/*************** NOT INITIALIZED CHECKS *****************/
/* cheat visibility */
- attr.is_initialized = 0;
+ attr.is_initialized = 0;
puts( "pthread_rwlockattr_setpshared( &attr, shared ) -- EINVAL" );
status = pthread_rwlockattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
assert( status == EINVAL );
@@ -338,7 +338,7 @@ int main(
assert( !status );
sleep(2);
-
+
/*************** CREATE THREADS AND LET THEM OBTAIN WRITE LOCK *************/
puts( "pthread_rwlock_trywrlock(RWLock) -- OK" );
status = pthread_rwlock_trywrlock(&RWLock);
@@ -367,7 +367,7 @@ int main(
puts( "clock_gettime(CLOCK_REALTIME, &abstime) -- OK" );
status = clock_gettime( CLOCK_REALTIME, &abstime );
assert( !status );
-
+
abstime.tv_sec += 1;
puts( "pthread_rwlock_timedwrlock( &RWLock, &abstime) -- OK" );
status = pthread_rwlock_timedwrlock( &RWLock, &abstime );
@@ -421,7 +421,7 @@ int main(
puts( "pthread_rwlock_unlock ( &rwlock ) -- OK" );
status = pthread_rwlock_unlock( &rwlock );
assert( status == 0 );
-
+
puts( "pthread_rwlock_unlock ( &rwlock ) -- OK" );
status = pthread_rwlock_unlock( &rwlock );
assert( status == 0 );
diff --git a/testsuites/psxtests/psxsem01/init.c b/testsuites/psxtests/psxsem01/init.c
index 247fdebea3..137ea6f47e 100644
--- a/testsuites/psxtests/psxsem01/init.c
+++ b/testsuites/psxtests/psxsem01/init.c
@@ -177,7 +177,7 @@ void *POSIX_Init(
errno, ENAMETOOLONG, "sem_open errorno ENAMETOOLONG" );
puts( "Init: sem_open - sem1 SUCCESSFUL" );
- n_sem1 = sem_open( "sem1",O_CREAT, 0777, 1 );
+ n_sem1 = sem_open( "sem1",O_CREAT, 0777, 1 );
assert( n_sem1 != SEM_FAILED );
puts( "Init: sem_destroy - named sem1 - EINVAL" );
diff --git a/testsuites/psxtests/psxsignal01/init.c b/testsuites/psxtests/psxsignal01/init.c
index 00098d22db..a36d0846cb 100644
--- a/testsuites/psxtests/psxsignal01/init.c
+++ b/testsuites/psxtests/psxsignal01/init.c
@@ -186,7 +186,7 @@ void *POSIX_Init(
Timer_id[ 0 ],
1,
Signal_duringISR_TSR,
- NULL
+ NULL
);
sleep(5);
/* signal occurs during interruptible sleep */
@@ -201,7 +201,7 @@ void *POSIX_Init(
Timer_id[ 0 ],
10,
Signal_duringISR_TSR,
- NULL
+ NULL
);
do {
end = rtems_clock_get_ticks_since_boot();
@@ -215,7 +215,7 @@ void *POSIX_Init(
/* end of install a signal handler for SIGUSR1 */
Signal_occurred = 0;
-
+
puts("*** Validate unexpected program termination ***");
puts( "*** END OF POSIX TEST SIGNAL ***" );
_POSIX_signals_Abnormal_termination_handler( SIGUSR1 );
diff --git a/testsuites/psxtests/psxsignal02/init.c b/testsuites/psxtests/psxsignal02/init.c
index ee58a16a15..7f28d76725 100644
--- a/testsuites/psxtests/psxsignal02/init.c
+++ b/testsuites/psxtests/psxsignal02/init.c
@@ -70,7 +70,7 @@ const char *Actions[] = {
"Spins",
"Sleeps"
};
-
+
typedef struct {
int priority;
@@ -95,7 +95,7 @@ void *Test_Thread(void *arg)
Test_t *test = (Test_t *)arg;
Install_Signal_Handler( test->name );
-
+
printf( "%s - %s\n", test->name, Actions[test->action] );
switch ( test->action ) {
case SUSPEND:
diff --git a/testsuites/psxtests/psxsignal03/init.c b/testsuites/psxtests/psxsignal03/init.c
index 38b69ce8dc..c2ff91047a 100644
--- a/testsuites/psxtests/psxsignal03/init.c
+++ b/testsuites/psxtests/psxsignal03/init.c
@@ -109,7 +109,7 @@ void *Test_Thread(void *arg)
/* unblocked signals */
sc = pthread_sigmask( SIG_UNBLOCK, &mask, NULL );
assert( !sc );
-
+
/* build wait mask */
sc = sigemptyset( &wait_mask );
assert( !sc );
@@ -127,8 +127,8 @@ void *Test_Thread(void *arg)
printf( "%s - siginfo.si_signo=%d\n", name, info.si_signo );
printf( "%s - siginfo.si_code=%d\n", name, info.si_code );
/* FIXME: Instead of casting to (uintptr_t) and using PRIxPTR, we
- * likely should use %p. However, this would render this test's
- * behavior non-deterministic, because %p's behavior is
+ * likely should use %p. However, this would render this test's
+ * behavior non-deterministic, because %p's behavior is
* "implementation defined" */
printf( "%s - siginfo.si_value=0x%08" PRIxPTR "\n", name, (uintptr_t) info.si_value.sival_ptr );
diff --git a/testsuites/psxtests/psxspin02/test.c b/testsuites/psxtests/psxspin02/test.c
index 56bb6614f0..827ddbe9c9 100644
--- a/testsuites/psxtests/psxspin02/test.c
+++ b/testsuites/psxtests/psxspin02/test.c
@@ -81,7 +81,7 @@ int main(
assert( rstatus == RTEMS_SUCCESSFUL );
sleep(1);
-
+
puts( "pthread_spin_unlock( &Spinlock ) -- OK" );
status = pthread_spin_unlock( &Spinlock );
assert( status == 0 );
diff --git a/testsuites/psxtests/psxstack01/init.c b/testsuites/psxtests/psxstack01/init.c
index 6866f286ec..76f54d43c3 100644
--- a/testsuites/psxtests/psxstack01/init.c
+++ b/testsuites/psxtests/psxstack01/init.c
@@ -58,7 +58,7 @@ void *POSIX_Init(
assert( Stack_Low );
Stack_High = Stack_Low + PTHREAD_MINIMUM_STACK_SIZE;
- puts( "Init - Initialize thread attribute for user provided stack" );
+ puts( "Init - Initialize thread attribute for user provided stack" );
sc = pthread_attr_init( &attr );
assert( !sc );
diff --git a/testsuites/psxtests/psxsysconf/init.c b/testsuites/psxtests/psxsysconf/init.c
index 1d6bdb06d2..74db6c0a2d 100644
--- a/testsuites/psxtests/psxsysconf/init.c
+++ b/testsuites/psxtests/psxsysconf/init.c
@@ -29,8 +29,8 @@ void *POSIX_Init(
sc = sysconf( -1 );
fatal_posix_service_status_errno( sc, EINVAL, "bad conf name" );
-#if UNUSED
-/* FIXME: This test doesn't make sense.
+#if UNUSED
+/* FIXME: This test doesn't make sense.
* On targets with sizeof(int) < sizeof(long), compilation will fail,
* On targets with sizeof(int) == sizeof(long) the call is valid.
*/
diff --git a/testsuites/psxtests/psxtime/test.c b/testsuites/psxtests/psxtime/test.c
index da0b0b9f6e..d0fd09f6d3 100644
--- a/testsuites/psxtests/psxtime/test.c
+++ b/testsuites/psxtests/psxtime/test.c
@@ -105,7 +105,7 @@ void test_adjtime(void)
rtems_time_of_day *the_tod;
rtems_time_of_day tod;
rtems_interval ticks;
-
+
the_tod = &Dates[0];
print_time( "rtems_clock_set ", the_tod, "\n" );
@@ -151,7 +151,7 @@ void test_adjtime(void)
assert( sc == 0 );
/*
- * spin until over 1/2 of the way to the
+ * spin until over 1/2 of the way to the
*/
ticks = rtems_clock_get_ticks_per_second();
assert( ticks );
diff --git a/testsuites/psxtests/psxtimer01/psxtimer.c b/testsuites/psxtests/psxtimer01/psxtimer.c
index fd5f343cd7..231bf4d26a 100644
--- a/testsuites/psxtests/psxtimer01/psxtimer.c
+++ b/testsuites/psxtests/psxtimer01/psxtimer.c
@@ -81,7 +81,7 @@ void StopTimer(
rtems_test_exit(0);
}
}
-
+
/* task A */
void * task_a (void *arg)
{
@@ -125,7 +125,7 @@ void * task_a (void *arg)
timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
);
-
+
/* periodic activity */
while(1) {
@@ -188,7 +188,7 @@ void * task_b (void *arg)
if (timer_settime(timer_id,TIMER_ABSTIME,&timerdata,NULL) == -1) {
perror ("Error in timer setting\n");
rtems_test_exit(0);
- }
+ }
/* periodic activity */
while(1) {
@@ -196,7 +196,7 @@ void * task_b (void *arg)
perror ("Error in sigwait\n");
rtems_test_exit(0);
}
-
+
if (timer_gettime(timer_id, &timerdata) == -1) {
perror ("Error in timer_gettime\n");
rtems_test_exit(0);
@@ -208,7 +208,7 @@ void * task_b (void *arg)
* and thus they are close but not equal. Can we test for this?
*/
if ( !_Timespec_Equal_to( &timerdata.it_value, &my_period) ){
- printf( "NOT EQUAL %d:%d != %d:%d\n",
+ printf( "NOT EQUAL %d:%d != %d:%d\n",
timerdata.it_value.tv_sec,
timerdata.it_value.tv_nsec,
my_period.tv_sec,
@@ -220,8 +220,8 @@ void * task_b (void *arg)
pthread_mutex_lock (&data.mutex);
clock = time(NULL);
- printf("Executing task B with count = %2i %s",
- params->count, ctime(&clock)
+ printf("Executing task B with count = %2i %s",
+ params->count, ctime(&clock)
);
data.updated = TRUE;
pthread_cond_signal (&data.sync);
@@ -292,8 +292,8 @@ void * task_c (void *arg)
pthread_cond_wait (&data.sync,&data.mutex);
}
clock = time(NULL);
- printf("Executing task C with count = %2i %s",
- params->count, ctime(&clock)
+ printf("Executing task C with count = %2i %s",
+ params->count, ctime(&clock)
);
if ( count && (count % 5) == 0 ) {
@@ -301,7 +301,7 @@ void * task_c (void *arg)
sleep(1);
overruns = timer_getoverrun( timer_id );
printf( "task C: timer_getoverrun - overruns=%d\n", overruns );
-
+
if (timer_gettime(timer_id, &timergetdata) == -1) {
perror ("Error in timer setting\n");
rtems_test_exit(0);
diff --git a/testsuites/psxtests/psxtimer02/psxtimer.c b/testsuites/psxtests/psxtimer02/psxtimer.c
index 12e9dbba17..671eb92828 100644
--- a/testsuites/psxtests/psxtimer02/psxtimer.c
+++ b/testsuites/psxtests/psxtimer02/psxtimer.c
@@ -41,7 +41,7 @@ void *POSIX_Init (
timer_t timer;
timer_t timer1;
struct itimerspec itimer;
-
+
/*
* If these are not filled in correctly, we don't pass its error checking.
*/
diff --git a/testsuites/psxtests/psxusleep/init.c b/testsuites/psxtests/psxusleep/init.c
index 077dfb84d7..bd66d28a83 100644
--- a/testsuites/psxtests/psxusleep/init.c
+++ b/testsuites/psxtests/psxusleep/init.c
@@ -46,7 +46,7 @@ rtems_task Init(
remaining = usleep( 3 * 1000000 );
rtems_test_assert( !remaining );
-
+
sc = clock_gettime( CLOCK_REALTIME, &tv );
rtems_test_assert( !sc );