summaryrefslogtreecommitdiffstats
path: root/library/GSUP_Emulation.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'library/GSUP_Emulation.ttcn')
-rw-r--r--library/GSUP_Emulation.ttcn24
1 files changed, 10 insertions, 14 deletions
diff --git a/library/GSUP_Emulation.ttcn b/library/GSUP_Emulation.ttcn
index 7cf1656..86859ba 100644
--- a/library/GSUP_Emulation.ttcn
+++ b/library/GSUP_Emulation.ttcn
@@ -98,9 +98,8 @@ runs on GSUP_Emulation_CT return GSUP_ConnHdlr {
return GsupImsiTable[i].comp_ref;
}
}
- log("GSUP IMSI table not found by IMSI ", imsi);
- setverdict(fail);
- self.stop;
+ setverdict(fail, "GSUP IMSI table not found by IMSI ", imsi);
+ mtc.stop;
}
/* resolve connection ID by component reference */
@@ -111,9 +110,8 @@ runs on GSUP_Emulation_CT return charstring {
return GsupImsiTable[i].imsi;
}
}
- log("GSUP IMSI table not found by component ", client);
- setverdict(fail);
- self.stop;
+ setverdict(fail, "GSUP IMSI table not found by component ", client);
+ mtc.stop;
}
private function f_imsi_table_init()
@@ -142,9 +140,7 @@ runs on GSUP_Emulation_CT {
return;
}
}
- log("GSUP IMSI table full!");
- setverdict(fail);
- self.stop;
+ testcase.stop("GSUP IMSI table full!");
}
private function f_imsi_table_del(charstring imsi)
@@ -158,9 +154,8 @@ runs on GSUP_Emulation_CT {
return
}
}
- log("GSUP IMSI table attempt to delete non-existant ", imsi);
- setverdict(fail);
- self.stop;
+ setverdict(fail, "GSUP IMSI table attempt to delete non-existant ", imsi);
+ mtc.stop;
}
@@ -190,7 +185,7 @@ function main(GsupOps ops, charstring id) runs on GSUP_Emulation_CT {
[] GSUP.receive(ASP_IPA_Event:{up_down:=ASP_IPA_EVENT_UP}) { repeat; }
[] GSUP.receive(ASP_IPA_Event:{up_down:=ASP_IPA_EVENT_DOWN}) {
setverdict(fail, "GSUP Connection Lost");
- self.stop;
+ mtc.stop;
}
/* GSUP -> Client: call related messages */
@@ -272,6 +267,7 @@ runs on GSUP_Emulation_CT return GSUP_ConnHdlr {
}
}
setverdict(fail, "Couldn't find GsupExpect for incoming imsi ", imsi);
+ mtc.stop;
return ret;
}
@@ -287,7 +283,7 @@ runs on GSUP_Emulation_CT {
return;
}
}
- setverdict(fail, "No space left in GsupExpectTable");
+ testcase.stop("No space left in GsupExpectTable");
}
/* client/conn_hdlr side function to use procedure port to create expect in emulation */