summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-11-27 15:15:28 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2018-11-27 17:41:10 +0100
commite68f927f1cf1dfe33fc230c203a6b775e5f73988 (patch)
treef5383369e0f716588a9df57967f3e13300b5125f
parent1ff1fdf63e5f96723dc6c750b1f6c888aea051e2 (diff)
bsc: Start the timer at the beginning of f_init
This avoids a possible indefinite timeout if osmo-bsc crashes during the test. Ticket: OS#3713 Change-Id: I88f6254d9d2d90ab49a3c3d8255af25ca6ffe624
-rw-r--r--bsc/BSC_Tests.ttcn5
1 files changed, 3 insertions, 2 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 53e4396..962d6c6 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -310,6 +310,9 @@ function f_init(integer nr_bts := NUM_BTS, boolean handler_mode := false) runs o
}
g_initialized := true;
+ T_guard.start;
+ activate(as_Tguard());
+
/* Call a function of our 'parent component' BSSAP_Adapter_CT to start the
* MSC-side BSSAP emulation */
if (handler_mode) {
@@ -336,8 +339,6 @@ function f_init(integer nr_bts := NUM_BTS, boolean handler_mode := false) runs o
f_wait_oml(i, "connected", 5.0);
}
- T_guard.start;
- activate(as_Tguard());
}
/* expect to receive a RSL message matching a specified template on a given BTS / stream */