diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-11 19:26:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-11 19:26:41 +0000 |
commit | 300fe1c6e05818e988e3b995985e0b411c3d9406 (patch) | |
tree | 26c79276df67a6d3efa7746935d244583c8621ea /testsuites/sptests/sp02/task1.c | |
parent | 2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-300fe1c6e05818e988e3b995985e0b411c3d9406.tar.bz2 |
2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp01/init.c, sp01/sp01.doc, sp01/system.h, sp01/task1.c, sp02/init.c,
sp02/preempt.c, sp02/sp02.doc, sp02/system.h, sp02/task1.c,
sp02/task2.c, sp02/task3.c, sp03/init.c, sp03/sp03.doc,
sp03/system.h, sp03/task1.c, sp03/task2.c: Clean up. Update.
Diffstat (limited to 'testsuites/sptests/sp02/task1.c')
-rw-r--r-- | testsuites/sptests/sp02/task1.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/testsuites/sptests/sp02/task1.c b/testsuites/sptests/sp02/task1.c index 07f2e5e062..4a73bca9c5 100644 --- a/testsuites/sptests/sp02/task1.c +++ b/testsuites/sptests/sp02/task1.c @@ -1,13 +1,5 @@ -/* Task_1 - * - * This routine serves as a test task. It verifies the task manager. - * - * Input parameters: - * argument - task argument - * - * 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 @@ -40,7 +32,9 @@ rtems_task Task_1( status = rtems_task_ident( Task_name[ 2 ], RTEMS_SEARCH_ALL_NODES, &tid2 ); directive_failed( status, "rtems_task_ident of TA2" ); - printf( "TA1 - rtems_task_ident - tid of TA2 (0x%.8" PRIxrtems_id ")\n", tid2 ); + printf( + "TA1 - rtems_task_ident - tid of TA2 (0x%.8" PRIxrtems_id ")\n", tid2 + ); status = rtems_object_get_classic_name( tid2, &tid2_name ); directive_failed( status, "rtems_object_get_classic_name of TA2" ); @@ -50,14 +44,15 @@ rtems_task Task_1( status = rtems_task_ident( Task_name[ 3 ], RTEMS_SEARCH_ALL_NODES, &tid3 ); directive_failed( status, "rtems_task_ident of TA3" ); - printf( "TA1 - rtems_task_ident - tid of TA3 (0x%.8" PRIxrtems_id ")\n", tid3 ); + printf( + "TA1 - rtems_task_ident - tid of TA3 (0x%.8" PRIxrtems_id ")\n", tid3 + ); status = rtems_task_set_priority( tid3, 2, &previous_priority ); directive_failed( status, "rtems_task_set_priority" ); puts( "TA1 - rtems_task_set_priority - set TA3's priority to 2" ); - puts( "TA1 - rtems_task_suspend - suspend TA2" ); status = rtems_task_suspend( tid2 ); directive_failed( status, "rtems_task_suspend of TA2" ); @@ -67,7 +62,7 @@ rtems_task Task_1( directive_failed( status, "rtems_task_delete of TA2" ); puts( "TA1 - rtems_task_wake_after - sleep for 5 seconds" ); - status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() ); + status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); puts( "*** END OF TEST 2 ***" ); |