diff options
author | Harald Welte <laforge@osmocom.org> | 2020-08-19 08:57:33 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-08-20 06:10:42 +0000 |
commit | 4a3fa71d9da5d70409cf3eabe332c9f5c673b54e (patch) | |
tree | 3177f34944b842907a0deb763893aa0d46bebc49 /msc/MSC_Tests.ttcn | |
parent | f1c3c21ef481df5061629ad8a28b6e9c00288d39 (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.ttcn | 5 |
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); } |