<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20503">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">PCU_Tests: introduce TC_pcuif_info_ind_subsequent()<br><br>This change reproduces a segfault caused by the recent regression [1].<br>The IUT tries to bind on BSSGP host:port that it's already bound to.<br><br>[1] Ib389925cf5c9f18951af6242c31ea70476218e9a<br><br>Change-Id: I4c3bc883d795e5d1ee5ab175ac03684924692a7c<br>Related: SYS#5108<br>---<br>M pcu/PCU_Tests.ttcn<br>1 file changed, 17 insertions(+), 0 deletions(-)<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/03/20503/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 f68485a..5860484 100644</span><br><span>--- a/pcu/PCU_Tests.ttcn</span><br><span>+++ b/pcu/PCU_Tests.ttcn</span><br><span>@@ -2441,6 +2441,21 @@</span><br><span>    f_shutdown(__BFILE__, __LINE__, final := true);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Check if the IUT handles subsequent INFO.ind messages */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_pcuif_info_ind_subsequent() runs on RAW_PCU_Test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+      var template PCUIF_info_ind info_ind := ts_PCUIF_INFO_default;</span><br><span style="color: hsl(120, 100%, 40%);">+        var PCUIF_Message pcu_msg;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  /* Initialize the PCU interface abstraction */</span><br><span style="color: hsl(120, 100%, 40%);">+        f_init_raw(testcasename(), info_ind);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       /* Send INFO.ind again and make sure that the IUT is still alive */</span><br><span style="color: hsl(120, 100%, 40%);">+   BTS.send(ts_PCUIF_INFO_IND(0, info_ind));</span><br><span style="color: hsl(120, 100%, 40%);">+     f_pcuif_rx_data_req(pcu_msg);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       f_shutdown(__BFILE__, __LINE__, final := true);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> control {</span><br><span>    execute( TC_pcuif_suspend() );</span><br><span>       execute( TC_ta_ptcch_idle() );</span><br><span>@@ -2494,6 +2509,8 @@</span><br><span>               execute( TC_pcuif_fh_pkt_ass_ul() );</span><br><span>                 execute( TC_pcuif_fh_pkt_ass_dl() );</span><br><span>         }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   execute( TC_pcuif_info_ind_subsequent() );</span><br><span> }</span><br><span> </span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20503">change 20503</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/+/20503"/><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: I4c3bc883d795e5d1ee5ab175ac03684924692a7c </div>
<div style="display:none"> Gerrit-Change-Number: 20503 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>