summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spedfsched02
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-12-06 08:21:38 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-12-06 08:21:38 +0000
commit13760c8b1616e9fa8e49bec5d30c89a07027b4b6 (patch)
tree9e34308cb106f51e203aed789a40e0a27d5e99f2 /testsuites/sptests/spedfsched02
parent2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-13760c8b1616e9fa8e49bec5d30c89a07027b4b6.tar.bz2
2011-12-06 Petr Benes <benesp16@fel.cvut.cz>
PR 1980/testing * spedfsched02/task1.c, spedfsched02/init.c: Fixed initialization.
Diffstat (limited to 'testsuites/sptests/spedfsched02')
-rw-r--r--testsuites/sptests/spedfsched02/init.c4
-rw-r--r--testsuites/sptests/spedfsched02/task1.c3
2 files changed, 4 insertions, 3 deletions
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 );