summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-12 21:26:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-12 21:26:54 +0000
commite8c902cd411a2f60e916ffcc76566aae2a1aa250 (patch)
tree135b1944633011b0d91e572972a8e1ee4d6d18b5 /c
parent8ed3125de3909ab82e5d2351f481cedb36e3949e (diff)
downloadrtems-e8c902cd411a2f60e916ffcc76566aae2a1aa250.tar.bz2
+ Added check for priority over 256.
+ Modified output to correctly state the error.
Diffstat (limited to 'c')
-rw-r--r--c/src/tests/itrontests/itrontask02/init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/tests/itrontests/itrontask02/init.c b/c/src/tests/itrontests/itrontask02/init.c
index 95700f9f59..49c3a1e68b 100644
--- a/c/src/tests/itrontests/itrontask02/init.c
+++ b/c/src/tests/itrontests/itrontask02/init.c
@@ -331,9 +331,12 @@ void ITRON_Init( void )
*/
puts( "\n\n*** Rotate Ready Queue Errors ***" );
- puts( "Init - rot_rdq - invalid priority - E_PAR" );
+ puts( "Init - rot_rdq - priority -1 - E_PAR" );
status = rot_rdq( -1 );
assert( status == E_PAR );
+ puts( "Init - rot_rdq - priority 257 - E_PAR" );
+ status = rot_rdq( 257 );
+ assert( status == E_PAR );
#if (0)
/* This routine is not coded */