aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-02-07 14:40:09 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2018-02-07 18:45:08 +0100
commit86f3920e5b7a0fa141f4dcf2831237d9a155a6ac (patch)
tree09597b44df12d0f88dc7b680f3ddc28fbc49020d
parentdcf9eb92f4c09e7562ec1b9c524ccd8cb57c89b2 (diff)
bsc: fix f_establish_fully() for expected assignment failures
The altstep guard statements are to restrictive so they do not match on an expected assignment failure anymore. - Add a new altstep for expected assignment failures. Change-Id: I78b839f0bcb7e2da61bff0add3abc452bfea40a2
-rw-r--r--bsc/MSC_ConnectionHandler.ttcn4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn
index a7f4d710..5a645bdc 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -517,6 +517,7 @@ runs on MSC_ConnHdlr return PDU_BSSAP {
var PDU_BSSAP bssap;
timer T := 10.0;
var boolean exp_compl := ischosen(exp_ass_cpl.pdu.bssmap.assignmentComplete);
+ var boolean exp_fail := ischosen(exp_ass_cpl.pdu.bssmap.assignmentFailure);
var ExpectCriteria mgcpcrit := {
connid := omit,
endpoint := omit,
@@ -556,6 +557,9 @@ runs on MSC_ConnHdlr return PDU_BSSAP {
(not st.is_assignment and st.modify_done)] BSSAP.receive(exp_ass_cpl) -> value bssap {
setverdict(pass);
}
+ [exp_fail] BSSAP.receive(exp_ass_cpl) -> value bssap {
+ setverdict(pass);
+ }
[(st.is_assignment and st.assignment_done or
(not st.is_assignment and st.modify_done)) and
exp_compl] BSSAP.receive(tr_BSSMAP_AssignmentComplete) {