gbproy/ns: Make components alive
Might help with random test failures on shutdown, see OS#6273 for
details.
Change-Id: I59578934c6406bea5eb8d55d3641737e555a2d85
Related: OS#6273
diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp
index b5fc807..d1700f8 100644
--- a/library/NS_Emulation.ttcnpp
+++ b/library/NS_Emulation.ttcnpp
@@ -319,7 +319,7 @@
/* Create ipep and add it to the list */
log("Creating NSIP provider for ", ipep.local_ip, ":",
ipep.local_udp_port);
- ipep.provider_ct := NS_Provider_IPL4_CT.create(nsvc_id & "-provIP");
+ ipep.provider_ct := NS_Provider_IPL4_CT.create(nsvc_id & "-provIP") alive;
connect(self:NSPIP_PROC, ipep.provider_ct:PROC);
ipep.provider_ct.start(NS_Provider_IPL4.main(nsvc_cfg, g_config, nsvc_id));
g_ip_endpoints := g_ip_endpoints & { ipep };
@@ -343,7 +343,7 @@
/* Start the actual NSVC component */
te.cfg := nsvc_cfg;
- te.vc_conn := NSVC_CT.create(nsvc_id);
+ te.vc_conn := NSVC_CT.create(nsvc_id) alive;
te.state := NSVC_S_DEAD_BLOCKED;
connect(self:NSVC, te.vc_conn:NS_SP);
@@ -721,7 +721,7 @@
vc_NSP_IP := nsp_ip
#ifdef NS_EMULATION_FR
} else if (ischosen(g_nsvc_config.provider.fr)) {
- vc_NSP_FR := NS_Provider_FR_CT.create(id & "-provFR");
+ vc_NSP_FR := NS_Provider_FR_CT.create(id & "-provFR") alive;
connect(self:NSCP, vc_NSP_FR:NSE);
vc_NSP_FR.start(NS_Provider_FR.main(g_nsvc_config, g_config, id));
#endif