fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41643?usp=email )
Change subject: bts: create all components alive ......................................................................
bts: create all components alive
This mitigates sporadic dynamic-testcase errors triggered by messages being sent to components that have terminated before receiving them.
Change-Id: I68929b45d66d60617079a4f92d40ffea439bf4be --- M bts/BTS_Tests.ttcn M bts/BTS_Tests_LAPDm.ttcn 2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/43/41643/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index de02359..455e696 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -241,8 +241,8 @@ var ASP_RSL_Unitdata rx_ud; timer T;
- vc_IPA := IPA_Emulation_CT.create(id & "-RSL-IPA"); - vc_RSL := RSL_Emulation_CT.create(id & "-RSL"); + vc_IPA := IPA_Emulation_CT.create(id & "-RSL-IPA") alive; + vc_RSL := RSL_Emulation_CT.create(id & "-RSL") alive;
map(vc_IPA:IPA_PORT, system:IPA_CODEC_PT); connect(vc_IPA:IPA_RSL_PORT, vc_RSL:IPA_PT); @@ -695,7 +695,7 @@ var charstring id := testcasename(); var ConnHdlr vc_conn;
- vc_conn := ConnHdlr.create(id); + vc_conn := ConnHdlr.create(id) alive; /* connect to RSL Emulation main component */ connect(vc_conn:RSL, vc_RSL:CLIENT_PT); connect(vc_conn:RSL_PROC, vc_RSL:RSL_PROC); @@ -2626,7 +2626,7 @@ uint7_t rtp_pt := 0) runs on ConnHdlr { /* Step 0: initialize, connect and start the emulation component */ - vc_RTPEM := RTP_Emulation_CT.create(testcasename() & "-RTPEM"); + vc_RTPEM := RTP_Emulation_CT.create(testcasename() & "-RTPEM") alive; map(vc_RTPEM:RTP, system:RTP); map(vc_RTPEM:RTCP, system:RTCP); connect(vc_RTPEM:CTRL, self:RTPEM_CTRL); @@ -2676,7 +2676,7 @@ var OsmuxTxHandle tx_hdl; var OsmuxRxHandle rx_hdl; /* Step 0: initialize, connect and start the emulation component */ - vc_OsmuxEM := OSMUX_Emulation_CT.create(testcasename() & "-OsmuxEM"); + vc_OsmuxEM := OSMUX_Emulation_CT.create(testcasename() & "-OsmuxEM") alive; map(vc_OsmuxEM:OSMUX, system:OSMUX); connect(vc_OsmuxEM:CTRL, self:OsmuxEM_CTRL); connect(vc_OsmuxEM:DATA, self:OsmuxEM_DATA); diff --git a/bts/BTS_Tests_LAPDm.ttcn b/bts/BTS_Tests_LAPDm.ttcn index 7dda8b8..5b33795 100644 --- a/bts/BTS_Tests_LAPDm.ttcn +++ b/bts/BTS_Tests_LAPDm.ttcn @@ -24,7 +24,7 @@
function f_lapdm_init() runs on lapdm_test_CT { /* create the LAPDm component */ - lapdm_component := lapdm_CT.create; + lapdm_component := lapdm_CT.create alive; /* connect our own LAPDM port to the LAPDM Service Provider of the LAPDm component */ connect(self:LAPDM, lapdm_component:LAPDM_SP); /* connect the LAPDm compoent's lower-side port to the system L1CTL port (which is internally