From 9e15e9bfbaf0947442289a2d422d95b71db36f58 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 24 Jul 2011 22:10:20 +0000 Subject: 2011-07-24 Joel Sherrill * 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. --- testsuites/sptests/sp34/changepri.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'testsuites/sptests/sp34') diff --git a/testsuites/sptests/sp34/changepri.c b/testsuites/sptests/sp34/changepri.c index 41ef4672ea..b50711ca7d 100644 --- a/testsuites/sptests/sp34/changepri.c +++ b/testsuites/sptests/sp34/changepri.c @@ -80,7 +80,12 @@ rtems_task BlockingTasks(rtems_task_argument arg) status = rtems_task_set_priority(RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &opri); directive_failed( status, "rtems_task_set_priority" ); - printf("semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument " @ pri=%" PRIdrtems_task_priority ") blocks\n", arg, opri); + printf( + "semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument + " @ pri=%" PRIdrtems_task_priority ") blocks\n", + arg, + opri + ); status = rtems_semaphore_obtain(Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); directive_failed( status, "rtems_semaphore_obtain" ); @@ -88,7 +93,12 @@ rtems_task BlockingTasks(rtems_task_argument arg) status = rtems_task_set_priority(RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &npri); directive_failed( status, "rtems_task_set_priority" ); - printf("semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument " @ pri=%" PRIdrtems_task_priority ") returns\n", arg, npri); + printf( + "semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument + " @ pri=%" PRIdrtems_task_priority ") returns\n", + arg, + npri + ); (void) rtems_task_delete( RTEMS_SELF ); } @@ -108,8 +118,8 @@ rtems_task Init(rtems_task_argument ignored) status = rtems_semaphore_create( rtems_build_name ('S', 'E', 'M', '1'), /* name */ 0, /* initial count = 0 */ - RTEMS_LOCAL | - RTEMS_COUNTING_SEMAPHORE | + RTEMS_LOCAL | + RTEMS_COUNTING_SEMAPHORE | RTEMS_PRIORITY, 0, &Semaphore); /* *id */ @@ -161,7 +171,7 @@ rtems_task Init(rtems_task_argument ignored) /* exit the test */ puts( "*** END OF TEST 34 ***" ); - exit(0); + rtems_test_exit(0); } /* configuration information */ -- cgit v1.2.3