Change in osmo-ttcn3-hacks[master]: BTS_Tests.ttcn: add 'lazy' mode for as_meas_res()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Oct 4 10:58:48 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/11226


Change subject: BTS_Tests.ttcn: add 'lazy' mode for as_meas_res()
......................................................................

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
---
M bts/BTS_Tests.ttcn
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/26/11226/1

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 @@
 }
 
 /* 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;

-- 
To view, visit https://gerrit.osmocom.org/11226
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I39118d6e64c767fad2c9618ec0ef4532dc60e715
Gerrit-Change-Number: 11226
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181004/1b653ce5/attachment.htm>


More information about the gerrit-log mailing list