From 11ef7b6a4631f9343328b5a6ff2b098b1a723839 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 14 Dec 2008 18:39:44 +0000 Subject: 2008-12-14 Joel Sherrill * itrontask04/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/itrontests/itrontask04/init.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'testsuites/itrontests/itrontask04/init.c') diff --git a/testsuites/itrontests/itrontask04/init.c b/testsuites/itrontests/itrontask04/init.c index 942a22ee6e..cbcc0f386e 100644 --- a/testsuites/itrontests/itrontask04/init.c +++ b/testsuites/itrontests/itrontask04/init.c @@ -10,7 +10,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -24,6 +24,8 @@ #include "system.h" #include +#include + void ITRON_Init( void ) { ER status; @@ -31,8 +33,8 @@ void ITRON_Init( void ) puts( "\n\n*** ITRON TASK TEST 4 ***" ); - status = chg_pri( 0, 20 ); - directive_failed( status, "chg_pri to 20" ); + status = chg_pri( 0, RTEMS_MAXIMUM_PRIORITY - 2 ); + directive_failed( status, "chg_pri to MAX - 2" ); pk_ctsk.exinf = NULL; pk_ctsk.tskatr = TA_HLNG; -- cgit v1.2.3