diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 18:39:44 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 18:39:44 +0000 |
commit | 11ef7b6a4631f9343328b5a6ff2b098b1a723839 (patch) | |
tree | 6aad983a80df60ae4ad9f72d782257a7b0e6907d /testsuites/itrontests/itrontask04/init.c | |
parent | 2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-11ef7b6a4631f9343328b5a6ff2b098b1a723839.tar.bz2 |
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r-- | testsuites/itrontests/itrontask04/init.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <stdio.h> +#include <rtems.h> + 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; |