<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20010">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">PCU_Tests: randomize MA length in f_TC_pcuif_fh_params_gen()<br><br>This way we also test different variations of MA length.<br><br>Change-Id: Id886ed72c8a03fe2b27bc7add74eb0f58a2fe6ff<br>Related: SYS#4868, OS#4547<br>---<br>M pcu/PCU_Tests.ttcn<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/10/20010/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn</span><br><span>index a4596bf..df2964c 100644</span><br><span>--- a/pcu/PCU_Tests.ttcn</span><br><span>+++ b/pcu/PCU_Tests.ttcn</span><br><span>@@ -2162,8 +2162,11 @@</span><br><span> }</span><br><span> </span><br><span> /* Randomly generate a set of hopping parameters for one timeslot */</span><br><span style="color: hsl(0, 100%, 40%);">-private function f_TC_pcuif_fh_params_gen(integer ma_len)</span><br><span style="color: hsl(120, 100%, 40%);">+private function f_TC_pcuif_fh_params_gen(integer max_ma_len)</span><br><span> return template (value) PCUIF_InfoTrxTs {</span><br><span style="color: hsl(120, 100%, 40%);">+        /* Pick a random MA length in range 2 .. max_ma_len */</span><br><span style="color: hsl(120, 100%, 40%);">+        var integer ma_len := 2 + f_rnd_int(max_ma_len - 2);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>       return ts_PCUIF_InfoTrxTsH1(tsc := f_rnd_int(7),</span><br><span>                                 hsn := f_rnd_int(63),</span><br><span>                                maio := f_rnd_int(63),</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20010">change 20010</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/c/osmo-ttcn3-hacks/+/20010"/><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-Change-Id: Id886ed72c8a03fe2b27bc7add74eb0f58a2fe6ff </div>
<div style="display:none"> Gerrit-Change-Number: 20010 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>