diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-10-04 17:44:50 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-10-05 11:14:53 +0000 |
commit | 41baf00d99ee24a748c67c05391a192c8905b626 (patch) | |
tree | 5a12d3b75ce2475d66b6c9d316f6902a2a426991 | |
parent | 7695a0d879877bf004ed1cb7f48ee95b3da72fd9 (diff) |
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
-rw-r--r-- | bts/BTS_Tests.ttcn | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index fe59fd3..9c749b4 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; |