summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/itrontests/ChangeLog10
-rw-r--r--testsuites/itrontests/itrontask04/init.c8
2 files changed, 15 insertions, 3 deletions
diff --git a/testsuites/itrontests/ChangeLog b/testsuites/itrontests/ChangeLog
index 314fda8681..8ad6deec26 100644
--- a/testsuites/itrontests/ChangeLog
+++ b/testsuites/itrontests/ChangeLog
@@ -1,3 +1,13 @@
+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.
+
2008-05-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* itronhello/system.h, itronmbox01/system.h, itrontask02/system.h,
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;