summaryrefslogtreecommitdiffstats
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
parent3db81880fe8238375a1cd1ba336330bd6206d001 (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.
-rw-r--r--c/src/tests/itrontests/itrontask02/init.c10
-rw-r--r--c/src/tests/itrontests/itrontask02/itrontask02.scn7
-rw-r--r--testsuites/itrontests/itrontask02/init.c10
-rw-r--r--testsuites/itrontests/itrontask02/itrontask02.scn7
4 files changed, 28 insertions, 6 deletions
diff --git a/c/src/tests/itrontests/itrontask02/init.c b/c/src/tests/itrontests/itrontask02/init.c
index c43cb08b5f..48a602e271 100644
--- a/c/src/tests/itrontests/itrontask02/init.c
+++ b/c/src/tests/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 );
}
diff --git a/c/src/tests/itrontests/itrontask02/itrontask02.scn b/c/src/tests/itrontests/itrontask02/itrontask02.scn
index 9ecf332584..a7a7aca31b 100644
--- a/c/src/tests/itrontests/itrontask02/itrontask02.scn
+++ b/c/src/tests/itrontests/itrontask02/itrontask02.scn
@@ -4,7 +4,7 @@ Init - cre_tsk - Non-Dormant Task
NON-DORMANT - Sleep for 2 minutes
*** Create Task Errors ***
-nit - cre_tsk - access violation ( id less than -4) - E_OACV
+Init - cre_tsk - access violation ( id less than -4) - E_OACV
Init - cre_tsk - bad id (between 0 and -4) - E_ID
Init - cre_tsk - cannot create TSK_SELF - E_ID
Init - cre_tsk - invalid id; id already exists - E_OBJ
@@ -65,6 +65,7 @@ Init - rsm_tsk - access violation ( id less than -4) - E_OACV
Init - rsm_tsk - bad id (between 0 and -4) - E_ID
Init - rsm_tsk - cannot resume SELF - E_OBJ
Init - rsm_tsk - task is DORMANT - E_OBJ
+Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK
Init - rsm_tsk - task does not exist - E_NOEXS
*** Forcibly Resume Task Errors ***
@@ -73,5 +74,7 @@ Init - frsm_tsk - bad id (between 0 and -4) - E_ID
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
+Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK
+
+*** END OF ITRON TASK TEST 2 ***
-*** END OF ITRON TASK TEST 2 *** \ No newline at end of file
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 );
}
diff --git a/testsuites/itrontests/itrontask02/itrontask02.scn b/testsuites/itrontests/itrontask02/itrontask02.scn
index 9ecf332584..a7a7aca31b 100644
--- a/testsuites/itrontests/itrontask02/itrontask02.scn
+++ b/testsuites/itrontests/itrontask02/itrontask02.scn
@@ -4,7 +4,7 @@ Init - cre_tsk - Non-Dormant Task
NON-DORMANT - Sleep for 2 minutes
*** Create Task Errors ***
-nit - cre_tsk - access violation ( id less than -4) - E_OACV
+Init - cre_tsk - access violation ( id less than -4) - E_OACV
Init - cre_tsk - bad id (between 0 and -4) - E_ID
Init - cre_tsk - cannot create TSK_SELF - E_ID
Init - cre_tsk - invalid id; id already exists - E_OBJ
@@ -65,6 +65,7 @@ Init - rsm_tsk - access violation ( id less than -4) - E_OACV
Init - rsm_tsk - bad id (between 0 and -4) - E_ID
Init - rsm_tsk - cannot resume SELF - E_OBJ
Init - rsm_tsk - task is DORMANT - E_OBJ
+Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK
Init - rsm_tsk - task does not exist - E_NOEXS
*** Forcibly Resume Task Errors ***
@@ -73,5 +74,7 @@ Init - frsm_tsk - bad id (between 0 and -4) - E_ID
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
+Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK
+
+*** END OF ITRON TASK TEST 2 ***
-*** END OF ITRON TASK TEST 2 *** \ No newline at end of file