diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-24 22:10:20 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-24 22:10:20 +0000 |
commit | 9e15e9bfbaf0947442289a2d422d95b71db36f58 (patch) | |
tree | 6a35849de7fa9a7671e76d396157457799abfa79 /testsuites/sptests/sp12 | |
parent | 0ef2534489432065600b4f609f0d8ead967f3ae2 (diff) |
2011-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp04/tswitch.c, sp07/task1.c, sp07/task2.c, sp09/screen07.c,
sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c,
sp13/task1.c, sp14/asr.c, sp14/task1.c, sp19/first.c, sp19/fptask.c,
sp19/inttest.h, sp19/task1.c, sp20/task1.c, sp25/task1.c,
sp26/task1.c, sp28/init.c, sp29/init.c, sp31/task1.c, sp32/init.c,
sp33/init.c, sp34/changepri.c, sp36/strict_order_mut.c, sp37/init.c,
sp43/init.c, sp44/init.c, sp48/init.c, sp54/init.c, sp59/init.c,
sp65/init.c, sp68/init.c, spchain/init.c, spclockget/init.c,
spfatal03/testcase.h, spfatal07/testcase.h, spfatal_support/init.c:
Do not line length exceed 80 columns.
Diffstat (limited to 'testsuites/sptests/sp12')
-rw-r--r-- | testsuites/sptests/sp12/pridrv.c | 25 | ||||
-rw-r--r-- | testsuites/sptests/sp12/pritask.c | 33 |
2 files changed, 28 insertions, 30 deletions
diff --git a/testsuites/sptests/sp12/pridrv.c b/testsuites/sptests/sp12/pridrv.c index cbd72e4da7..c634950e4f 100644 --- a/testsuites/sptests/sp12/pridrv.c +++ b/testsuites/sptests/sp12/pridrv.c @@ -1,17 +1,5 @@ -/* Priority_test_driver - * - * This routine is the initialization task for this test program. - * It is a user initialization task and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: - * priority_base - priority_base switch - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-2009. +/* + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -87,7 +75,9 @@ void Priority_test_driver( priority_base + 4, &previous_priority ); - printf( "PDRV - change priority of PRI5 from %" PRIdrtems_task_priority " to %" PRIdrtems_task_priority "\n", + printf( + "PDRV - change priority of PRI5 from %" PRIdrtems_task_priority + " to %" PRIdrtems_task_priority "\n", previous_priority, priority_base + 4 ); @@ -99,7 +89,10 @@ void Priority_test_driver( &previous_priority ); directive_failed( status, "PDRV rtems_task_set_priority CURRENT" ); - printf( "PDRV - priority of PRI5 is %" PRIdrtems_task_priority "\n", previous_priority ); + printf( + "PDRV - priority of PRI5 is %" PRIdrtems_task_priority "\n", + previous_priority + ); } } } diff --git a/testsuites/sptests/sp12/pritask.c b/testsuites/sptests/sp12/pritask.c index 9b53758775..87372309bf 100644 --- a/testsuites/sptests/sp12/pritask.c +++ b/testsuites/sptests/sp12/pritask.c @@ -1,13 +1,5 @@ -/* Priority_task - * - * This routine serves as a test task. It verifies the semaphore manager. - * - * Input parameters: - * its_index - priority index - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-2009. +/* + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -31,7 +23,7 @@ rtems_task Priority_task( rtems_task_priority its_priority; rtems_task_priority current_priority; rtems_status_code status; - uint32_t index; + uint32_t index; its_priority = Task_priority[ its_index ]; @@ -51,7 +43,12 @@ rtems_task Priority_task( directive_failed( status, "rtems_semaphore_obtain of SM2" ); if ( its_priority < PRIORITY_INHERIT_BASE_PRIORITY ) { - printf( "PRI%" PRIdrtems_task_argument " - WHY AM I HERE? (pri=%" PRIdrtems_task_priority ")", its_index, its_priority ); + printf( + "PRI%" PRIdrtems_task_argument " - WHY AM I HERE? (pri=%" + PRIdrtems_task_priority ")", + its_index, + its_priority + ); rtems_test_exit( 0 ); } @@ -67,7 +64,12 @@ rtems_task Priority_task( status = rtems_task_set_priority( RTEMS_SELF, priority, &old_priority ); directive_failed( status, "rtems_task_set_priority with resource" ); if ( priority != old_priority ) { - printf( "priority != old_priority (%" PRIdrtems_task_priority " != %" PRIdrtems_task_priority ")\n", priority, old_priority ); + printf( + "priority != old_priority (%" PRIdrtems_task_priority + " != %" PRIdrtems_task_priority ")\n", + priority, + old_priority + ); rtems_test_exit(0); } } @@ -105,7 +107,10 @@ rtems_task Priority_task( ¤t_priority ); directive_failed( status, "PRI5 rtems_task_set_priority CURRENT" ); - printf( "PRI5 - priority of PRI5 is %" PRIdrtems_task_priority "\n", current_priority ); + printf( + "PRI5 - priority of PRI5 is %" PRIdrtems_task_priority "\n", + current_priority + ); (void) rtems_task_suspend( RTEMS_SELF ); } |