From 713b2eac2fdb0a40056ddb8eb00250541df0a3b2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 10 Nov 1999 22:15:42 +0000 Subject: General cleanup. Test documentation improved. The message buffer test prints a message instead of actually testing since the message buffer implementation is not in yet. --- testsuites/itrontests/itrontask03/itrontask03.doc | 27 +++++++++++++++++------ testsuites/itrontests/itrontask03/itrontask03.scn | 2 +- testsuites/itrontests/itrontask03/system.h | 1 + testsuites/itrontests/itrontask03/task1.c | 2 +- 4 files changed, 23 insertions(+), 9 deletions(-) (limited to 'testsuites/itrontests/itrontask03') 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 +#include /* 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" ); -- cgit v1.2.3