summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp28
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 18:36:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 18:36:00 +0000
commita986c0757ad4c5f843502bcea0a5e7211368444e (patch)
treeefc60f55510c7b0e92a056550e139e96ae6b2f70 /testsuites/sptests/sp28
parent2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-a986c0757ad4c5f843502bcea0a5e7211368444e.tar.bz2
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/init.c, sp12/init.c, sp12/pridrv.c, sp12/pritask.c, sp12/system.h, sp16/system.h, sp25/system.h, sp26/task1.c, sp28/init.c, sp29/init.c, sp35/priinv.c, sp42/init.c: Run all tests successfully with maxixum number of priorities as 16 instead of 256. This was done by temporarily modifying the score priority.h maximum. This allowed testing of all API code to ensure that it worked properly with a reduced number of priorities. Most modifications were to switch from hard-coded maximum to using the API provided methods to determine maximum number of priority levels.
Diffstat (limited to 'testsuites/sptests/sp28')
-rw-r--r--testsuites/sptests/sp28/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/sptests/sp28/init.c b/testsuites/sptests/sp28/init.c
index 89f8c2a5ad..ce7c5e738e 100644
--- a/testsuites/sptests/sp28/init.c
+++ b/testsuites/sptests/sp28/init.c
@@ -96,7 +96,7 @@ starttask (int arg)
rtems_status_code sc;
sc = rtems_task_create(rtems_build_name ('S', 'R', 'V', arg + 'A'),
- 100,
+ RTEMS_MAXIMUM_PRIORITY - 1,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
RTEMS_NO_FLOATING_POINT|RTEMS_LOCAL,
@@ -280,7 +280,7 @@ void test_delete_from_other_task(void)
directive_failed( sc, "add for other task case" );
sc = rtems_task_create(rtems_build_name ('O', 'T', 'H', 'R'),
- 100,
+ RTEMS_MAXIMUM_PRIORITY - 1,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
RTEMS_NO_FLOATING_POINT|RTEMS_LOCAL,
@@ -327,7 +327,7 @@ void test_delete_as_side_effect(void)
test_dtor_ran = 0;
sc = rtems_task_create(rtems_build_name ('O', 'T', 'H', 'R'),
- 100,
+ RTEMS_MAXIMUM_PRIORITY - 1,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_PREEMPT|RTEMS_NO_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0),
RTEMS_NO_FLOATING_POINT|RTEMS_LOCAL,