From f2ad3d120b411fffb13890f20597d8e0c5345cf7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 3 Sep 2008 22:06:22 +0000 Subject: 2008-09-03 Joel Sherrill * mp05/system.h, mp05/task1.c, mp06/system.h, mp06/task1.c, mp07/system.h, mp07/task1.c, mp14/evtask1.c, mp14/evtmtask.c, mp14/init.c, mp14/msgtask1.c, mp14/pttask1.c, mp14/smtask1.c, mp14/system.h: Convert to bool type. --- testsuites/mptests/mp14/evtask1.c | 8 ++++---- testsuites/mptests/mp14/evtmtask.c | 4 ++-- testsuites/mptests/mp14/init.c | 4 ++-- testsuites/mptests/mp14/msgtask1.c | 6 +++--- testsuites/mptests/mp14/pttask1.c | 6 +++--- testsuites/mptests/mp14/smtask1.c | 6 +++--- testsuites/mptests/mp14/system.h | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) (limited to 'testsuites/mptests/mp14') diff --git a/testsuites/mptests/mp14/evtask1.c b/testsuites/mptests/mp14/evtask1.c index d8665e73ca..3703d93ced 100644 --- a/testsuites/mptests/mp14/evtask1.c +++ b/testsuites/mptests/mp14/evtask1.c @@ -59,8 +59,8 @@ rtems_task Test_task( if ( Multiprocessing_configuration.node == 1 ) { puts( "Sending events to remote task" ); - while ( Stop_Test == FALSE ) { - for ( count=EVENT_TASK_DOT_COUNT; Stop_Test == FALSE && count; count-- ) { + while ( Stop_Test == false ) { + for ( count=EVENT_TASK_DOT_COUNT; Stop_Test == false && count; count-- ) { status = rtems_event_send( remote_tid, RTEMS_EVENT_16 ); directive_failed( status, "rtems_event_send" ); } @@ -69,8 +69,8 @@ rtems_task Test_task( } puts( "Receiving events from remote task" ); - while ( Stop_Test == FALSE ) { - for ( count=EVENT_TASK_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) { + while ( Stop_Test == false ) { + for ( count=EVENT_TASK_DOT_COUNT ; Stop_Test == false && count ; count-- ) { status = rtems_event_receive( RTEMS_EVENT_16, RTEMS_DEFAULT_OPTIONS, diff --git a/testsuites/mptests/mp14/evtmtask.c b/testsuites/mptests/mp14/evtmtask.c index cad9a5e212..47e0ea6167 100644 --- a/testsuites/mptests/mp14/evtmtask.c +++ b/testsuites/mptests/mp14/evtmtask.c @@ -39,8 +39,8 @@ rtems_task Delayed_events_task( status = rtems_timer_create( Timer_name[ 1 ], &Timer_id[ 1 ] ); directive_failed( status, "rtems_timer_create" ); - while ( Stop_Test == FALSE ) { - for ( count=DELAYED_EVENT_DOT_COUNT; Stop_Test == FALSE && count; count-- ){ + while ( Stop_Test == false ) { + for ( count=DELAYED_EVENT_DOT_COUNT; Stop_Test == false && count; count-- ){ status = rtems_timer_fire_after( Timer_id[ 1 ], 1, diff --git a/testsuites/mptests/mp14/init.c b/testsuites/mptests/mp14/init.c index 3afcff4585..2f6036e317 100644 --- a/testsuites/mptests/mp14/init.c +++ b/testsuites/mptests/mp14/init.c @@ -31,7 +31,7 @@ rtems_timer_service_routine Stop_Test_TSR( void *ignored_address ) { - Stop_Test = TRUE; + Stop_Test = true; } rtems_task Init( @@ -46,7 +46,7 @@ rtems_task Init( Multiprocessing_configuration.node ); - Stop_Test = FALSE; + Stop_Test = false; status = rtems_timer_create( rtems_build_name('S', 'T', 'O', 'P'), diff --git a/testsuites/mptests/mp14/msgtask1.c b/testsuites/mptests/mp14/msgtask1.c index 567546f5b1..2cd32f37e7 100644 --- a/testsuites/mptests/mp14/msgtask1.c +++ b/testsuites/mptests/mp14/msgtask1.c @@ -65,10 +65,10 @@ rtems_task Message_queue_task( buffer_count = &Msg_buffer[ index ][3]; } - while ( Stop_Test == FALSE ) { + while ( Stop_Test == false ) { yield_count = 100; - for ( count=MESSAGE_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) { + for ( count=MESSAGE_DOT_COUNT ; Stop_Test == false && count ; count-- ) { status = rtems_message_queue_receive( Queue_id[ 1 ], (long (*)[4])Msg_buffer[ index ], @@ -91,7 +91,7 @@ rtems_task Message_queue_task( ); directive_failed( status, "rtems_message_queue_send" ); - if (Stop_Test == FALSE) + if (Stop_Test == false) if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) { status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR ); directive_failed( status, "rtems_task_wake_after" ); diff --git a/testsuites/mptests/mp14/pttask1.c b/testsuites/mptests/mp14/pttask1.c index c2322a3f87..ce3362bc79 100644 --- a/testsuites/mptests/mp14/pttask1.c +++ b/testsuites/mptests/mp14/pttask1.c @@ -48,15 +48,15 @@ rtems_task Partition_task( yield_count = 100; - while ( Stop_Test == FALSE ) { - for ( count=PARTITION_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) { + while ( Stop_Test == false ) { + for ( count=PARTITION_DOT_COUNT ; Stop_Test == false && count ; count-- ) { status = rtems_partition_get_buffer( Partition_id[ 1 ], &buffer ); directive_failed( status, "rtems_partition_get_buffer" ); status = rtems_partition_return_buffer( Partition_id[ 1 ], buffer ); directive_failed( status, "rtems_partition_return_buffer" ); - if (Stop_Test == FALSE) + if (Stop_Test == false) if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) { status = rtems_task_wake_after( 1 ); directive_failed( status, "rtems_task_wake_after" ); diff --git a/testsuites/mptests/mp14/smtask1.c b/testsuites/mptests/mp14/smtask1.c index eeda002a9d..3faefacfa1 100644 --- a/testsuites/mptests/mp14/smtask1.c +++ b/testsuites/mptests/mp14/smtask1.c @@ -44,9 +44,9 @@ rtems_task Semaphore_task( yield_count = 100; - while ( Stop_Test == FALSE ) { + while ( Stop_Test == false ) { - for ( count=SEMAPHORE_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) { + for ( count=SEMAPHORE_DOT_COUNT ; Stop_Test == false && count ; count-- ) { status = rtems_semaphore_obtain( Semaphore_id[ 1 ], RTEMS_DEFAULT_OPTIONS, @@ -57,7 +57,7 @@ rtems_task Semaphore_task( status = rtems_semaphore_release( Semaphore_id[ 1 ] ); directive_failed( status, "rtems_semaphore_release" ); - if ( Stop_Test == FALSE ) + if ( Stop_Test == false ) if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) { status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR ); directive_failed( status, "rtems_task_wake_after" ); diff --git a/testsuites/mptests/mp14/system.h b/testsuites/mptests/mp14/system.h index 06cfbda7f5..8305b8edc1 100644 --- a/testsuites/mptests/mp14/system.h +++ b/testsuites/mptests/mp14/system.h @@ -106,7 +106,7 @@ TEST_EXTERN uint32_t Msg_buffer[ 4 ][ 4 ]; extern rtems_multiprocessing_table Multiprocessing_configuration; -TEST_EXTERN volatile rtems_boolean Stop_Test; +TEST_EXTERN volatile bool Stop_Test; TEST_EXTERN rtems_id timer_id; #define EVENT_TASK_DOT_COUNT 100 -- cgit v1.2.3