summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spedfsched02
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2011-10-04 15:18:16 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2011-10-04 15:18:16 +0000
commitb0a2a7aa23fb3ec251e5e090f8be147215eabf4a (patch)
tree6414e66a2d70da1da05c3c5a597c1d8936d9cea4 /testsuites/sptests/spedfsched02
parent2011-10-03 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-b0a2a7aa23fb3ec251e5e090f8be147215eabf4a.tar.bz2
2011-10-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1922 * spcbssched02/system.h, spcbssched03/system.h, spedfsched02/system.h, spedfsched02/task1.c, spedfsched03/system.h: EDF and CBS scheduler: extern declarations fix.
Diffstat (limited to 'testsuites/sptests/spedfsched02')
-rw-r--r--testsuites/sptests/spedfsched02/system.h2
-rw-r--r--testsuites/sptests/spedfsched02/task1.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/sptests/spedfsched02/system.h b/testsuites/sptests/spedfsched02/system.h
index 3a3c8360bd..b9898f488f 100644
--- a/testsuites/sptests/spedfsched02/system.h
+++ b/testsuites/sptests/spedfsched02/system.h
@@ -60,6 +60,6 @@ TEST_EXTERN rtems_name Task_name[ 7 ]; /* array of task names */
TEST_EXTERN struct counters Count; /* iteration counters */
TEST_EXTERN struct counters Temporary_count;
-extern rtems_task_priority Priorities[ 7 ];
+TEST_EXTERN rtems_task_priority *Priorities;
/* end of include file */
diff --git a/testsuites/sptests/spedfsched02/task1.c b/testsuites/sptests/spedfsched02/task1.c
index 0fdf40417b..5ae12bd36c 100644
--- a/testsuites/sptests/spedfsched02/task1.c
+++ b/testsuites/sptests/spedfsched02/task1.c
@@ -31,7 +31,7 @@
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 Priorities[7] = { 0, 2, 2, 2, 2, 100, 1 };
+rtems_task_priority Prio[7] = { 0, 2, 2, 2, 2, 100, 1 };
rtems_task Task_1_through_6(
rtems_task_argument argument
@@ -44,6 +44,8 @@ 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 );