BSC_Tests: More robust against race condtions in IPA CCM and RESET

This commit is contained in:
Harald Welte 2017-12-10 14:10:59 +01:00
parent 346658df4b
commit 60e823a555
1 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,7 @@ runs on test_CT {
T.stop;
IPA_RSL[i].send(ts_ASP_RSL_UD(IPAC_PROTO_RSL_TRX0,ts_RSL_PAGING_LOAD_IND(23)));
}
[] IPA_RSL[i].receive(ASP_IPA_Event:?) { repeat }
[] IPA_RSL[i].receive { repeat }
[] T.timeout {
setverdict(fail, "Timeout RSL waiting for ASP_IPA_EVENT_ID_ACK");
@ -147,7 +148,13 @@ function f_sleep(float seconds) {
}
altstep as_Tguard() runs on test_CT {
var BSSAP_N_UNITDATA_ind ud_ind;
[] T_guard.timeout { setverdict(fail, "Timeout of T_guard"); }
/* always respond with RESET ACK to RESET */
[] BSSAP.receive(tr_BSSAP_UNITDATA_ind(?, ?, tr_BSSMAP_Reset)) -> value ud_ind {
BSSAP.send(ts_BSSAP_UNITDATA_req(ud_ind.callingAddress, ud_ind.calledAddress,
ts_BSSMAP_ResetAck));
}
}
function f_init() runs on test_CT {