From e94a64834d5c7eca4af49c920639791c3bb5231c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 10 Apr 2024 13:37:55 +0200 Subject: [PATCH] {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 --- asterisk/Asterisk_Tests.ttcn | 2 +- library/SIP_Emulation.ttcn | 2 +- sip/SIP_Tests.ttcn | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asterisk/Asterisk_Tests.ttcn b/asterisk/Asterisk_Tests.ttcn index dab940021..ebf19146a 100644 --- a/asterisk/Asterisk_Tests.ttcn +++ b/asterisk/Asterisk_Tests.ttcn @@ -133,7 +133,7 @@ runs on test_CT return ConnHdlr { 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 4aef536d4..559b575df 100644 --- a/library/SIP_Emulation.ttcn +++ b/library/SIP_Emulation.ttcn @@ -237,7 +237,7 @@ function f_init_sip(inout SIP_Emulation_CT ct, charstring id) { 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 4c6be1cf2..2164ef01b 100644 --- a/sip/SIP_Tests.ttcn +++ b/sip/SIP_Tests.ttcn @@ -122,7 +122,7 @@ function f_init_mncc(charstring id) runs on test_CT { 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 @@ runs on test_CT return ConnHdlr { 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);