summaryrefslogtreecommitdiffstats
path: root/testsuites/itrontests/itrontask03
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/itrontests/itrontask03')
-rw-r--r--testsuites/itrontests/itrontask03/itrontask03.doc27
-rw-r--r--testsuites/itrontests/itrontask03/itrontask03.scn2
-rw-r--r--testsuites/itrontests/itrontask03/system.h1
-rw-r--r--testsuites/itrontests/itrontask03/task1.c2
4 files changed, 23 insertions, 9 deletions
diff --git a/testsuites/itrontests/itrontask03/itrontask03.doc b/testsuites/itrontests/itrontask03/itrontask03.doc
index 12d12f0940..d5632c19ca 100644
--- a/testsuites/itrontests/itrontask03/itrontask03.doc
+++ b/testsuites/itrontests/itrontask03/itrontask03.doc
@@ -10,19 +10,19 @@
# http://www.OARcorp.com/rtems/license.html.
#
-
-
This file describes the directives and concepts tested by this test set.
+This test is based upon the test in sp0.
-test set name: test2
+test set name: itrontask03
directives:
- ext_tsk, cre_tsk, sta_tsk, rot_rdq
+ chg_pri cre_tsk del_tsk exd_tsk rot_rdq sta_tsk sus_tsk ter_tsk
+
+concepts: XXX - Verify
- ex_start, t_create, t_start, tm_tick, i_return, t_ident,
- t_delete, tm_wkafter, t_setpri, t_suspend
+ a. verifies rot_rdq can be used by a task to correctly yeild the processor
-concepts:
+ b. Verifies sus_tsk suspends another task.
a. Verifies that a task can delete another task and also delete itself.
@@ -38,3 +38,16 @@ concepts:
f. Verifies the break statement in the _Block_activate routine.
g. Verifies the while loop in the _Prev_tcb routine.
+
+notes:
+
+ rtems_wake_after calls should be replaced with itron calls when
+ the time functionality is added.
+
+output:
+
+
+
+
+
+
diff --git a/testsuites/itrontests/itrontask03/itrontask03.scn b/testsuites/itrontests/itrontask03/itrontask03.scn
index 1ee0401494..7cb5f948eb 100644
--- a/testsuites/itrontests/itrontask03/itrontask03.scn
+++ b/testsuites/itrontests/itrontask03/itrontask03.scn
@@ -6,7 +6,7 @@ TA1 - rtems_task_wake_after - sleep 1 second
TA2 - rtems_task_wake_after - sleep 1 minute
TA3 - rtems_task_wake_after - sleep 5 seconds
TA1 - chg_pri - set TA3's priority to 2
-TA1 - rtems_task_suspend - suspend TA2
+TA1 - sus_tsk - suspend TA2
TA1 - - delete TA2
TA1 - rtems_task_wake_after - sleep for 5 seconds
TA3 - exd_tsk - exit and delete self
diff --git a/testsuites/itrontests/itrontask03/system.h b/testsuites/itrontests/itrontask03/system.h
index 51af0eaca6..4e4a1ac7ae 100644
--- a/testsuites/itrontests/itrontask03/system.h
+++ b/testsuites/itrontests/itrontask03/system.h
@@ -15,6 +15,7 @@
*/
#include <tmacros.h>
+#include <itron.h>
/* functions */
diff --git a/testsuites/itrontests/itrontask03/task1.c b/testsuites/itrontests/itrontask03/task1.c
index 30a6078956..7c9ea52060 100644
--- a/testsuites/itrontests/itrontask03/task1.c
+++ b/testsuites/itrontests/itrontask03/task1.c
@@ -38,7 +38,7 @@ void Task_1()
puts( "TA1 - chg_pri - set TA3's priority to 2" );
- puts( "TA1 - rtems_task_suspend - suspend TA2" );
+ puts( "TA1 - sus_tsk - suspend TA2" );
status = sus_tsk( TA2_ID );
directive_failed( status, "sus_tsk of TA2" );