aboutsummaryrefslogtreecommitdiffstats
path: root/library/IPA_Emulation.ttcnpp
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-07-05 17:35:03 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2018-07-24 09:54:18 +0000
commite4ff537f9baacc94242407041f30de1994316622 (patch)
tree962ab05f96641d2983012df8ac80b03098cc81e4 /library/IPA_Emulation.ttcnpp
parentfcf27c9f24a2a9e636c5d9006f732b9bcbf0cea8 (diff)
library: Ensure setverdict(fail) is followed by mtc.stop
This will prevent subsequent failures from overwriting the verdict so we can easily see the root cause of the test failure. Using testcase.stop instead for errors internal to our test infrastructure to mark them as test errors instead of failed. Change-Id: Idc6819aaf0b01e70c38fad828dd44dcec6bdd778
Diffstat (limited to 'library/IPA_Emulation.ttcnpp')
-rw-r--r--library/IPA_Emulation.ttcnpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/IPA_Emulation.ttcnpp b/library/IPA_Emulation.ttcnpp
index df2b15e4..a271f2d8 100644
--- a/library/IPA_Emulation.ttcnpp
+++ b/library/IPA_Emulation.ttcnpp
@@ -203,7 +203,7 @@ function f_connect(charstring remote_host, IPL4asp_Types.PortNumber remote_port,
local_host, local_port, 0, { tcp:={} });
if (not ispresent(res.connId)) {
setverdict(fail, "Could not connect IPA socket, check your configuration");
- self.stop;
+ mtc.stop;
}
g_ipa_conn_id := res.connId;
g_ccm_pars := ccm_pars;
@@ -218,7 +218,7 @@ function f_bind(charstring local_host, IPL4asp_Types.PortNumber local_port,
local_host, local_port, { tcp:={} });
if (not ispresent(res.connId)) {
setverdict(fail, "Could not listen IPA socket, check your configuration");
- self.stop;
+ mtc.stop;
}
g_ipa_conn_id := res.connId;
g_ccm_pars := ccm_pars;
@@ -507,7 +507,7 @@ private function ScanEvents() runs on IPA_Emulation_CT {
}
case else {
setverdict(fail, "Unknown mode");
- self.stop;
+ mtc.stop;
}
}
}