BTS_Tests: Don't wait indefinitely for ASP_IPA_EVENT_UP

Change-Id: I5150660319896fe7f597ca333395923f128c8d87
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 @@
 
 /* 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 @@
 	};
 
 	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);