summaryrefslogtreecommitdiffstats
path: root/testsuites/itrontests/itrontask02/init.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-16 20:47:30 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-16 20:47:30 +0000
commit36072c8a5d9e32021d96f59e52e9c573298140d4 (patch)
tree06bc0c93b0bbc531e911540dc17f94a4a643849e /testsuites/itrontests/itrontask02/init.c
parentFixed spacing. (diff)
downloadrtems-36072c8a5d9e32021d96f59e52e9c573298140d4.tar.bz2
Added test case of rsm_tsk and frsm_tsk on a task not suspended.
This should result in nothing happening, but an E_OK result.
Diffstat (limited to 'testsuites/itrontests/itrontask02/init.c')
-rw-r--r--testsuites/itrontests/itrontask02/init.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuites/itrontests/itrontask02/init.c b/testsuites/itrontests/itrontask02/init.c
index c43cb08b5f..48a602e271 100644
--- a/testsuites/itrontests/itrontask02/init.c
+++ b/testsuites/itrontests/itrontask02/init.c
@@ -484,6 +484,10 @@ void ITRON_Init( void )
status = rsm_tsk( DORMANT_TASK_ID );
fatal_directive_status( status, E_OBJ, "rsm_tsk DORMANT");
+ puts( "Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK" );
+ status = rsm_tsk( NON_DORMANT_TASK_ID );
+ fatal_directive_status( status, E_OK, "rsm_tsk NON_DORMANT");
+
puts( "Init - rsm_tsk - task does not exist - E_NOEXS" );
status = rsm_tsk( 5 );
fatal_directive_status( status, E_NOEXS, "rms_tsk 5");
@@ -517,6 +521,10 @@ void ITRON_Init( void )
status = frsm_tsk( 5 );
fatal_directive_status( status, E_NOEXS, "frsm_tsk 5");
+ puts( "Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK" );
+ status = frsm_tsk( NON_DORMANT_TASK_ID );
+ fatal_directive_status( status, E_OK, "frsm_tsk NON_DORMANT");
+
#if (0)
/* these errors can not be generated for frsm_tsk at this time */
fatal_directive_status( status, EN_OBJNO, "frsm_tsk");
@@ -564,6 +572,6 @@ XXXXX - FIX ME
fatal_directive_status( status, EN_RPAR, "");
#endif
- puts( "*** ITRON TASK TEST 2 ***" );
+ puts( "*** END OF ITRON TASK TEST 2 ***" );
exit( 0 );
}