1 /***************************************************
2 ** @author STF 470, corrected by STF 487
4 ** @purpose 1:23.6, Ensure that timeout of a timer from a timer array works correctly
5 ** @verdict pass accept, ttcn3verdict:pass
6 ***************************************************/
8 module Sem_2306_timer_timeout_008 {
10 timer t_TimerArray[2][2] :={{0.5, 1.0}, {5.0, 5.5}};
13 testcase TC_Sem_2306_timer_timeout_008() runs on TComp{
14 var integer v_foundIndex[2];
15 for (var integer i := 0; i < lengthof(t_TimerArray); i := i + 1) {
16 for (var integer j := 0; j < lengthof(t_TimerArray[i]); j := j + 1) {
17 t_TimerArray[i][j].start;
21 t_TimerArray[0][0].stop;
23 any from t_TimerArray.timeout -> @index v_foundIndex;
24 if(v_foundIndex[0] == 0 and v_foundIndex[1] == 1){
27 setverdict(fail, "wrong number of timers with timeout");
32 execute(TC_Sem_2306_timer_timeout_008(), 5.0)