summaryrefslogtreecommitdiffstats
path: root/selftest/Selftest.ttcn
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-07-06 23:11:32 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2018-07-24 14:19:42 +0200
commitafce86630ccc0d9a3c0f566fa1c935587bbe3770 (patch)
tree5eadbb8c5508a19831a987d6e55739f19e7f11ba /selftest/Selftest.ttcn
parente4ff537f9baacc94242407041f30de1994316622 (diff)
Stop tests after failures
Call mtc.stop after setverdict(fail), add reasons to most failures and fail with verdict error for internal errors. Change-Id: I9b618235939fa41160b9be6677b121963d3ec857
Diffstat (limited to 'selftest/Selftest.ttcn')
-rw-r--r--selftest/Selftest.ttcn2
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/Selftest.ttcn b/selftest/Selftest.ttcn
index 826d244..8411b3d 100644
--- a/selftest/Selftest.ttcn
+++ b/selftest/Selftest.ttcn
@@ -57,7 +57,7 @@ function f_tcp_client_init() runs on IPA_selftest_CT {
res := IPL4asp_PortType.f_IPL4_connect(IP, "127.0.0.1", 55555, "", -1,-1, {tcp:={}});
if (not ispresent(res.connId)) {
setverdict(fail, "Could not connect to TCP port, check your configuration");
- self.stop;
+ mtc.stop;
}
g_ip_conn_id := res.connId;
}