From 41baf00d99ee24a748c67c05391a192c8905b626 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 4 Oct 2018 17:44:50 +0700 Subject: BTS_Tests.ttcn: add 'lazy' mode for as_meas_res() This mode would be useful for test cases, which expect to receive the RSL_MEAS_RES messages, but don't care about their correctness. Change-Id: I39118d6e64c767fad2c9618ec0ef4532dc60e715 --- bts/BTS_Tests.ttcn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index fe59fd36..9c749b45 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -1296,8 +1296,9 @@ private function f_build_meas_res_tmpl() runs on ConnHdlr return template RSL_Me } /* verify we regularly receive measurement reports with incrementing numbers */ -altstep as_meas_res() runs on ConnHdlr { +altstep as_meas_res(boolean verify_meas := true) runs on ConnHdlr { var RSL_Message rsl; + [not verify_meas] RSL.receive(tr_RSL_MEAS_RES(?)) { repeat; } [] RSL.receive(f_build_meas_res_tmpl()) -> value rsl { /* increment counter of next to-be-expected meas rep */ g_next_meas_res_nr := (g_next_meas_res_nr + 1) mod 256; -- cgit v1.2.3