From 13760c8b1616e9fa8e49bec5d30c89a07027b4b6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 6 Dec 2011 08:21:38 +0000 Subject: 2011-12-06 Petr Benes PR 1980/testing * spedfsched02/task1.c, spedfsched02/init.c: Fixed initialization. --- testsuites/sptests/spedfsched02/init.c | 4 ++++ testsuites/sptests/spedfsched02/task1.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'testsuites/sptests/spedfsched02') diff --git a/testsuites/sptests/spedfsched02/init.c b/testsuites/sptests/spedfsched02/init.c index 3552bf3dc9..079eda671f 100644 --- a/testsuites/sptests/spedfsched02/init.c +++ b/testsuites/sptests/spedfsched02/init.c @@ -28,6 +28,8 @@ #define CONFIGURE_INIT #include "system.h" +rtems_task_priority Prio[7] = { 0, 2, 2, 2, 2, 100, 1 }; + rtems_task Init( rtems_task_argument argument ) @@ -35,6 +37,8 @@ rtems_task Init( uint32_t index; rtems_status_code status; + Priorities = Prio; + puts( "\n\n*** TEST EDF Scheduler 2 ***" ); Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); diff --git a/testsuites/sptests/spedfsched02/task1.c b/testsuites/sptests/spedfsched02/task1.c index 5ae12bd36c..3344ca83ba 100644 --- a/testsuites/sptests/spedfsched02/task1.c +++ b/testsuites/sptests/spedfsched02/task1.c @@ -31,7 +31,6 @@ uint32_t Periods[7] = { 0, 2, 2, 2, 2, 100, 0 }; uint32_t Iterations[7] = { 0, 50, 50, 50, 50, 1, TA6_ITERATIONS }; -rtems_task_priority Prio[7] = { 0, 2, 2, 2, 2, 100, 1 }; rtems_task Task_1_through_6( rtems_task_argument argument @@ -44,8 +43,6 @@ rtems_task Task_1_through_6( uint32_t failed; rtems_status_code status; - Priorities = Prio; - status = rtems_rate_monotonic_create( argument, &rmid ); directive_failed( status, "rtems_rate_monotonic_create" ); put_name( Task_name[ argument ], FALSE ); -- cgit v1.2.3