summaryrefslogtreecommitdiffstats
path: root/library/NS_Emulation.ttcnpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/NS_Emulation.ttcnpp')
-rw-r--r--library/NS_Emulation.ttcnpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp
index ee25d3e3..5fb2aa67 100644
--- a/library/NS_Emulation.ttcnpp
+++ b/library/NS_Emulation.ttcnpp
@@ -85,25 +85,25 @@ module NS_Emulation {
out NsUnitdataRequest;
} with { extension "internal" };
- function NSStart(NSConfiguration init_config) runs on NS_CT {
+ function NSStart(NSConfiguration init_config, charstring id := testcasename()) runs on NS_CT {
config := init_config;
- f_init();
+ f_init(id & "-NSemu");
f_ScanEvents();
}
- private function f_init() runs on NS_CT {
+ private function f_init(charstring id) runs on NS_CT {
var Result res;
if (ischosen(config.provider.ip)) {
/* Connect the UDP socket */
- vc_NSP_IP := NS_Provider_IPL4_CT.create;
+ vc_NSP_IP := NS_Provider_IPL4_CT.create(id & "-provIP");
connect(self:NSCP, vc_NSP_IP:NSE);
- vc_NSP_IP.start(NS_Provider_IPL4.main(config));
+ vc_NSP_IP.start(NS_Provider_IPL4.main(config, id));
#ifdef NS_EMULATION_FR
} else if (ischosen(config.provider.fr)) {
- vc_NSP_FR := NS_Provider_FR_CT.create;
+ vc_NSP_FR := NS_Provider_FR_CT.create(id & "-provFR");
connect(self:NSCP, vc_NSP_FR:NSE);
- vc_NSP_FR.start(NS_Provider_FR.main(config));
+ vc_NSP_FR.start(NS_Provider_FR.main(config, id));
#endif
}