<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/11222">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BTS_Tests.ttcn: share as_rsl_sacch_ind() and as_rsl_any_ind()<br><br>Change-Id: I7ace54643c10df38a3ea941242f8b65264ef1322<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 19 insertions(+), 12 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn</span><br><span>index 162bfe6..c95f48a 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -3728,6 +3728,23 @@</span><br><span>   }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Expect (or not expect) SACCH messages (Measurement Reports) */</span><br><span style="color: hsl(120, 100%, 40%);">+private altstep as_rsl_sacch_ind(boolean exp_sacch) runs on ConnHdlr {</span><br><span style="color: hsl(120, 100%, 40%);">+ [exp_sacch] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) { repeat; }</span><br><span style="color: hsl(120, 100%, 40%);">+    [not exp_sacch] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) {</span><br><span style="color: hsl(120, 100%, 40%);">+          setverdict(fail, "Unexpected (SACCH) UNIT_DATA_IND message!");</span><br><span style="color: hsl(120, 100%, 40%);">+              mtc.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+/* Expect (or not expect) other kinds of messages */</span><br><span style="color: hsl(120, 100%, 40%);">+private altstep as_rsl_any_ind(boolean exp_any) runs on ConnHdlr {</span><br><span style="color: hsl(120, 100%, 40%);">+        [exp_any] RSL.receive { repeat; }</span><br><span style="color: hsl(120, 100%, 40%);">+     [not exp_any] RSL.receive {</span><br><span style="color: hsl(120, 100%, 40%);">+           setverdict(fail, "Unexpected RSL message!");</span><br><span style="color: hsl(120, 100%, 40%);">+                mtc.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* Send UI frame from MS and expect it to arrive as RLL UNITDATA IND on Abis */</span><br><span> function f_unitdata_mo(</span><br><span>         RslLinkId link_id,</span><br><span>@@ -3743,18 +3760,8 @@</span><br><span>  [] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, link_id, l3)) {</span><br><span>                setverdict(pass);</span><br><span>            }</span><br><span style="color: hsl(0, 100%, 40%);">-       /* Expect (or not expect) SACCH messages (Measurement Reports) */</span><br><span style="color: hsl(0, 100%, 40%);">-       [exp_sacch] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) { repeat; }</span><br><span style="color: hsl(0, 100%, 40%);">-      [not exp_sacch] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) {</span><br><span style="color: hsl(0, 100%, 40%);">-            setverdict(fail, "Unexpected (SACCH) UNIT_DATA_IND message!");</span><br><span style="color: hsl(0, 100%, 40%);">-                mtc.stop;</span><br><span style="color: hsl(0, 100%, 40%);">-               }</span><br><span style="color: hsl(0, 100%, 40%);">-       /* Expect (or not expect) other kinds of messages */</span><br><span style="color: hsl(0, 100%, 40%);">-    [exp_any] RSL.receive { repeat; }</span><br><span style="color: hsl(0, 100%, 40%);">-       [not exp_any] RSL.receive {</span><br><span style="color: hsl(0, 100%, 40%);">-             setverdict(fail, "Unexpected RSL message!");</span><br><span style="color: hsl(0, 100%, 40%);">-          mtc.stop;</span><br><span style="color: hsl(0, 100%, 40%);">-               }</span><br><span style="color: hsl(120, 100%, 40%);">+     [] as_rsl_sacch_ind(exp_sacch);</span><br><span style="color: hsl(120, 100%, 40%);">+       [] as_rsl_any_ind(exp_any);</span><br><span>  [] T.timeout {</span><br><span>               setverdict(fail, "Timeout waiting for UNIT_DATA_IND");</span><br><span>             mtc.stop;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11222">change 11222</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11222"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I7ace54643c10df38a3ea941242f8b65264ef1322 </div>
<div style="display:none"> Gerrit-Change-Number: 11222 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>