summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-12 14:50:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-12 14:50:42 +0000
commitec0b5ce5d79efa1a480e802cce3c4f89c5f1c511 (patch)
tree5df763626b95bfbe15a81f38851284b98d245de3 /c
parent3136f5c9173a9952ef36dd4f67b9575bcc44d98c (diff)
downloadrtems-ec0b5ce5d79efa1a480e802cce3c4f89c5f1c511.tar.bz2
Test name changed to reflect placement after merger.
Changed output to reflect what was actually being tested.
Diffstat (limited to 'c')
-rw-r--r--c/src/tests/itrontests/itrontask02/init.c10
-rw-r--r--c/src/tests/itrontests/itrontask02/itrontask02.scn7
2 files changed, 11 insertions, 6 deletions
diff --git a/c/src/tests/itrontests/itrontask02/init.c b/c/src/tests/itrontests/itrontask02/init.c
index 9013102e02..95700f9f59 100644
--- a/c/src/tests/itrontests/itrontask02/init.c
+++ b/c/src/tests/itrontests/itrontask02/init.c
@@ -81,7 +81,7 @@ void ITRON_Init( void )
T_RTSK pk_rtsk; /* Reference Task Packet */
- puts( "\n\n*** ITRON04 -- ITRON TASK TEST 4 ***\n" );
+ puts( "\n\n*** ITRON TASK TEST 2 ***\n" );
puts( "\n*** Create Task Errors ***" );
build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
@@ -133,7 +133,11 @@ void ITRON_Init( void )
pk_ctsk.tskatr = TA_HLNG;
pk_ctsk.itskpri = 0;
- puts( "Init - cre_tsk - itskpri is invalid - E_PAR" );
+ puts( "Init - cre_tsk - itskpri is 0 - E_PAR" );
+ status = cre_tsk( 5, &pk_ctsk );
+ assert( status == E_PAR );
+ pk_ctsk.itskpri = 257; /* XXX Design parameter not requirement. */
+ puts( "Init - cre_tsk - itskpri is 257 - E_PAR" );
status = cre_tsk( 5, &pk_ctsk );
assert( status == E_PAR );
@@ -513,6 +517,6 @@ void ITRON_Init( void )
assert( status == EN_RPAR );
#endif
- puts( "*** END OF ITRON TEST 4 ***" );
+ puts( "*** ITRON TASK TEST 2 ***" );
exit( 0 );
}
diff --git a/c/src/tests/itrontests/itrontask02/itrontask02.scn b/c/src/tests/itrontests/itrontask02/itrontask02.scn
index c269cc6696..bf2e240cca 100644
--- a/c/src/tests/itrontests/itrontask02/itrontask02.scn
+++ b/c/src/tests/itrontests/itrontask02/itrontask02.scn
@@ -1,4 +1,4 @@
-*** ITRON04 -- ITRON TASK TEST 4 ***
+*** ITRON TASK TEST 2 ***
*** Create Task Errors ***
@@ -9,7 +9,8 @@ Init - cre_tsk - cannot create self (0) - E_ID
Init - cre_tsk - invalid id; id already exists - E_OBJ
Init - cre_tsk - tskatr is invalid - E_RSATR
Init - cre_tsk - pk_ctsk is invalid - E_PAR
-Init - cre_tsk - itskpri is invalid - E_PAR
+Init - cre_tsk - itskpri is 0 - E_PAR
+Init - cre_tsk - itskpri is 257 - E_PAR
Init - cre_tsk - stksz is invalid - E_PAR
Init - cre_tsk - task is invalid - E_PAR
@@ -78,4 +79,4 @@ Init - frsm_tsk - cannot forcibly resume SELF - E_OBJ
Init - frsm_tsk - task is DORMANT - E_OBJ
Init - frsm_tsk - task does not exist - E_NOEXS
-*** END OF ITRON TEST 4 ***
+*** END OF ITRON TASK TEST 2 *** \ No newline at end of file