summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-02-08 09:50:46 +0100
committerlaforge <laforge@osmocom.org>2021-02-08 17:21:58 +0000
commit308125957a1df874530eba5383e58b3f620baae4 (patch)
tree210bd18d420ed134f913d5cea5aea4111a8a27e9
parent42bcc441533c0fcd7e9da5deccd7d496baf0b56e (diff)
stp: Time out after 5s if expected M3UA doesn't arrive
No need to wait for the global timeout here. Change-Id: I279aacf2215ccd63a6e52c6a71cda3b500a3795c
-rw-r--r--stp/STP_Tests_M3UA.ttcn6
1 files changed, 6 insertions, 0 deletions
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index b76d9be7..1c25bae4 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -90,6 +90,8 @@ runs on RAW_M3UA_CT {
friend function f_M3UA_exp(integer idx, template (present) PDU_M3UA msg) runs on RAW_M3UA_CT {
var M3UA_RecvFrom rx;
+ timer T := 5.0;
+ T.start;
alt {
[] M3UA[idx].receive(t_M3UA_RecvFrom(msg)) {
setverdict(pass);
@@ -99,6 +101,10 @@ friend function f_M3UA_exp(integer idx, template (present) PDU_M3UA msg) runs on
"while waiting for ", msg);
mtc.stop;
}
+ [] T.timeout {
+ setverdict(fail, "Timeout waiting for M3UA[", idx, "] ", msg);
+ mtc.stop;
+ }
}
}