summaryrefslogtreecommitdiffstats
path: root/library/Osmocom_CTRL_Functions.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'library/Osmocom_CTRL_Functions.ttcn')
-rw-r--r--library/Osmocom_CTRL_Functions.ttcn7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/Osmocom_CTRL_Functions.ttcn b/library/Osmocom_CTRL_Functions.ttcn
index 70885c9..da3b80d 100644
--- a/library/Osmocom_CTRL_Functions.ttcn
+++ b/library/Osmocom_CTRL_Functions.ttcn
@@ -40,10 +40,12 @@ module Osmocom_CTRL_Functions {
[] pt.receive(tr_CtrlMsgTrap) { repeat; }
[] pt.receive(tr_CtrlMsgError) -> value rx {
setverdict(fail, "Error in CTRL GET ", variable, ": ", rx.err.reason);
+ mtc.stop;
return "FAIL";
}
[] T.timeout {
setverdict(fail, "Timeout waiting for CTRL GET REPLY ", variable);
+ mtc.stop;
return "TIMEOUT";
}
}
@@ -62,9 +64,11 @@ module Osmocom_CTRL_Functions {
[] pt.receive(tr_CtrlMsgTrap) { repeat; }
[] pt.receive(tr_CtrlMsgError) -> value rx {
setverdict(fail, "Error in CTRL GET ", variable, ": ", rx.err.reason);
+ mtc.stop;
}
[] T.timeout {
setverdict(fail, "Timeout waiting for CTRL SET REPLY ", variable);
+ mtc.stop;
}
}
}
@@ -80,6 +84,7 @@ module Osmocom_CTRL_Functions {
}
[] T.timeout {
setverdict(fail, "Timeout waiting for TRAP ", variable);
+ mtc.stop;
return "TIMEOUT";
}
}
@@ -92,6 +97,7 @@ module Osmocom_CTRL_Functions {
ctrl_resp := f_ctrl_get(pt, variable);
if (not match(ctrl_resp, exp)) {
setverdict(fail, "Unexpected " & variable & ":" & ctrl_resp);
+ mtc.stop;
}
}
@@ -111,6 +117,7 @@ module Osmocom_CTRL_Functions {
ctrl_resp := f_ctrl_get(pt, variable);
if (not match(str2int(ctrl_resp), exp)) {
setverdict(fail, variable & " value " & ctrl_resp & " didn't match ", exp);
+ mtc.stop;
}
}