From de48cb67a21ab86a7af58154ffdee34e6fe1da92 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 14 Dec 2008 19:13:56 +0000 Subject: 2008-12-14 Joel Sherrill * unlimited/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. --- testsuites/samples/unlimited/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testsuites/samples/unlimited/init.c') diff --git a/testsuites/samples/unlimited/init.c b/testsuites/samples/unlimited/init.c index 8d7445977c..035374752d 100644 --- a/testsuites/samples/unlimited/init.c +++ b/testsuites/samples/unlimited/init.c @@ -37,11 +37,12 @@ rtems_task Init( { rtems_task_priority old_priority; rtems_mode old_mode; - uint32_t task; + uint32_t task; /* lower the task priority to allow created tasks to execute */ - rtems_task_set_priority(RTEMS_SELF, 20, &old_priority); + rtems_task_set_priority( + RTEMS_SELF, RTEMS_MAXIMUM_PRIORITY - 1, &old_priority); rtems_task_mode(RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode); printf( "\n*** UNLIMITED TASK TEST ***\n" ); -- cgit v1.2.3