From a986c0757ad4c5f843502bcea0a5e7211368444e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 14 Dec 2008 18:36:00 +0000 Subject: 2008-12-14 Joel Sherrill * 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. --- testsuites/sptests/sp12/pritask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/sptests/sp12/pritask.c') diff --git a/testsuites/sptests/sp12/pritask.c b/testsuites/sptests/sp12/pritask.c index 8aa3a0aea4..bd20f181eb 100644 --- a/testsuites/sptests/sp12/pritask.c +++ b/testsuites/sptests/sp12/pritask.c @@ -7,7 +7,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -46,7 +46,7 @@ rtems_task Priority_task( ); directive_failed( status, "rtems_semaphore_obtain of SM2" ); - if ( its_priority < 64 ) { + if ( its_priority < PRIORITY_INHERIT_BASE_PRIORITY ) { printf( "PRI%d - WHY AM I HERE? (pri=%d)", its_index, its_priority ); rtems_test_exit( 0 ); } -- cgit v1.2.3