summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-03 18:26:50 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-03 19:07:25 +0200
commit83f6dbfa341644d935f6f77c801eec3a3225811f (patch)
tree3e3201ec1297e6199c1a82410a3a0ea9df5bc02b
parent5d50a283ee6c00843f5487c357999f7ca4d425e8 (diff)
BTS_Tests: Don't wait indefinitely for ASP_IPA_EVENT_UP
-rw-r--r--bts/BTS_Tests.ttcn10
1 files changed, 9 insertions, 1 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index bc3f186..36b1f9d 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -283,6 +283,7 @@ private function f_init_pcu(PCUIF_CODEC_PT pt, charstring id,
/* global init function */
function f_init(charstring id := "BTS-Test") runs on test_CT {
+ timer T := 10.0;
g_AllChannels := {
/* TS 1..4: TCH/F */
valueof(ts_RslChanNr_Bm(1)), valueof(ts_RslChanNr_Bm(2)),
@@ -310,7 +311,14 @@ function f_init(charstring id := "BTS-Test") runs on test_CT {
};
f_init_rsl(id);
- RSL_CCHAN.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP});
+ T.start;
+ alt {
+ [] RSL_CCHAN.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP});
+ [] T.timeout {
+ setverdict(fail, "Timeout waiting for ASP_IPA_EVENT_UP");
+ self.stop;
+ }
+ }
f_sleep(0.5); /* workaround for OS#3000 */
f_init_vty(id);
f_ipa_ctrl_start(mp_ctrl_ip, mp_ctrl_port);