pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36548?usp=email )
Change subject: {SIP,Asterisk}_Tests: Mark all components alive ......................................................................
{SIP,Asterisk}_Tests: Mark all components alive
This fixes some dynamic errors occuring due to messages arriving while tests is being torn down.
Change-Id: I60642071758ad1203196eddd3bbacb84f4dcf9fb --- M asterisk/Asterisk_Tests.ttcn M library/SIP_Emulation.ttcn M sip/SIP_Tests.ttcn 3 files changed, 16 insertions(+), 4 deletions(-)
Approvals: osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified fixeria: Looks good to me, approved
diff --git a/asterisk/Asterisk_Tests.ttcn b/asterisk/Asterisk_Tests.ttcn index dab9400..ebf1914 100644 --- a/asterisk/Asterisk_Tests.ttcn +++ b/asterisk/Asterisk_Tests.ttcn @@ -133,7 +133,7 @@ var ConnHdlr vc_conn; var charstring id := testcasename();
- vc_conn := ConnHdlr.create(id); + vc_conn := ConnHdlr.create(id) alive;
connect(vc_conn:SIP, vc_SIP:CLIENT); connect(vc_conn:SIP_PROC, vc_SIP:CLIENT_PROC); diff --git a/library/SIP_Emulation.ttcn b/library/SIP_Emulation.ttcn index 4aef536..559b575 100644 --- a/library/SIP_Emulation.ttcn +++ b/library/SIP_Emulation.ttcn @@ -237,7 +237,7 @@ create_cb := refers(SIP_Emulation.ExpectedCreateCallback) };
- ct := SIP_Emulation_CT.create(id); + ct := SIP_Emulation_CT.create(id) alive; map(ct:SIP, system:SIP); ct.start(SIP_Emulation.main(ops, id)); } diff --git a/sip/SIP_Tests.ttcn b/sip/SIP_Tests.ttcn index 4c6be1c..2164ef0 100644 --- a/sip/SIP_Tests.ttcn +++ b/sip/SIP_Tests.ttcn @@ -122,7 +122,7 @@ unitdata_cb := refers(MNCC_Emulation.DummyUnitdataCallback) };
- vc_MNCC := MNCC_Emulation_CT.create(id); + vc_MNCC := MNCC_Emulation_CT.create(id) alive; map(vc_MNCC:MNCC, system:MNCC_CODEC_PT); vc_MNCC.start(MNCC_Emulation.main(ops, id, mp_mncc, true)); } @@ -147,7 +147,7 @@ var ConnHdlr vc_conn; var charstring id := testcasename();
- vc_conn := ConnHdlr.create(id); + vc_conn := ConnHdlr.create(id) alive;
connect(vc_conn:SIP, vc_SIP:CLIENT); connect(vc_conn:SIP_PROC, vc_SIP:CLIENT_PROC);