summaryrefslogtreecommitdiffstats
path: root/library/SMPP_Emulation.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'library/SMPP_Emulation.ttcn')
-rw-r--r--library/SMPP_Emulation.ttcn16
1 files changed, 7 insertions, 9 deletions
diff --git a/library/SMPP_Emulation.ttcn b/library/SMPP_Emulation.ttcn
index 27876dc..6dc78e9 100644
--- a/library/SMPP_Emulation.ttcn
+++ b/library/SMPP_Emulation.ttcn
@@ -88,7 +88,7 @@ runs on SMPP_Emulation_CT return SMPP_ConnHdlr {
}
}
setverdict(fail, "No componten for SMPP TID ", tid);
- self.stop;
+ mtc.stop;
}
@@ -109,8 +109,7 @@ runs on SMPP_Emulation_CT {
return;
}
}
- setverdict(fail, "SMPP Trans table full!");
- self.stop;
+ testcase.stop("SMPP Trans table full!");
}
private function f_trans_table_del(uint32_t trans_id)
@@ -123,7 +122,7 @@ runs on SMPP_Emulation_CT {
}
}
setverdict(fail, "SMPP Trans table attempt to delete non-existant ", trans_id);
- self.stop;
+ mtc.stop;
}
@@ -136,7 +135,7 @@ runs on SMPP_Emulation_CT {
local_host, local_port, 0, { tcp :={} });
if (not ispresent(res.connId)) {
setverdict(fail, "Could not connect to SMPP port, check your configuration");
- self.stop;
+ mtc.stop;
}
g_smpp_conn_id := res.connId;
}
@@ -187,7 +186,7 @@ private function f_rx_smpp(template SMPP_PDU pdu) runs on SMPP_Emulation_CT {
[] SMPP_PORT.receive(tr_SMPP_Recv(g_smpp_conn_id, pdu)) { }
[] T_wait.timeout {
setverdict(fail, "Timeout waiting for ", pdu);
- self.stop;
+ mtc.stop;
}
}
}
@@ -211,7 +210,7 @@ private altstep as_smpp() runs on SMPP_Emulation_CT {
}
[] SMPP_PORT.receive {
setverdict(fail, "Unexpected SMPP from peer");
- self.stop;
+ mtc.stop;
}
}
@@ -371,8 +370,7 @@ runs on SMPP_Emulation_CT {
return;
}
}
- setverdict(fail, "No space left in SmppExpectTable");
- self.stop;
+ testcase.stop("No space left in SmppExpectTable");
}
private function f_exp_lookup(SMPP_TON ton, SMPP_NPI npi, charstring dst)