summaryrefslogtreecommitdiffstats
path: root/msc/MSC_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-08-19 08:57:33 +0200
committerlaforge <laforge@osmocom.org>2020-08-20 06:10:42 +0000
commit4a3fa71d9da5d70409cf3eabe332c9f5c673b54e (patch)
tree3177f34944b842907a0deb763893aa0d46bebc49 /msc/MSC_Tests.ttcn
parentf1c3c21ef481df5061629ad8a28b6e9c00288d39 (diff)
msc: Make TC_lu_and_mo_call_sccp_tiar_timeout() more reliable
There is a race condition when shutting down, as a DLCX might arrive while we are half-shutdown. Expect both DLCX before terminating the ConnHdlr. Change-Id: Ia0342a9bb346929e0e538f4cb571abfc4acac6bf
Diffstat (limited to 'msc/MSC_Tests.ttcn')
-rw-r--r--msc/MSC_Tests.ttcn5
1 files changed, 4 insertions, 1 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 63e90f4..bdd9f62 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -702,12 +702,15 @@ friend function f_lu_and_mo_call_sccp_tiar_timeout(charstring id, BSC_ConnHdlrPa
T_wait_iar.stop
setverdict(pass);
}
- [] MGCP.receive(tr_DLCX(?)) { repeat; }
[] T_wait_iar.timeout {
setverdict(fail, "Timeout waiting for T(iar) triggered SCCP RSLD");
mtc.stop;
}
}
+ /* DLCX for both directions; if we don't do this, we might receive either of the two during
+ * shutdown causing race conditions */
+ MGCP.receive(tr_DLCX(?));
+ MGCP.receive(tr_DLCX(?));
setverdict(pass);
}