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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cosmetic: handover_test: add IMSI to subscr for logging<br><br>Change-Id: I52fa8f3183c93ed362d8252d20daf00c60a117c8<br>---<br>M tests/handover/handover_test.c<br>1 file changed, 11 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c</span><br><span>index 87e64ec..769fd06 100644</span><br><span>--- a/tests/handover/handover_test.c</span><br><span>+++ b/tests/handover/handover_test.c</span><br><span>@@ -239,8 +239,12 @@</span><br><span> </span><br><span> void create_conn(struct gsm_lchan *lchan)</span><br><span> {</span><br><span style="color: hsl(120, 100%, 40%);">+    static unsigned int next_imsi = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+    char imsi[sizeof(lchan->conn->bsub->imsi)];</span><br><span style="color: hsl(120, 100%, 40%);">+  struct gsm_network *net = lchan->ts->trx->bts->network;</span><br><span>  struct gsm_subscriber_connection *conn;</span><br><span style="color: hsl(0, 100%, 40%);">- conn = bsc_subscr_con_allocate(lchan->ts->trx->bts->network);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   conn = bsc_subscr_con_allocate(net);</span><br><span> </span><br><span>     /* CAUTION HACK: When __real_mgcp_conn_modify() is called by the GSCON</span><br><span>        * FSM, then we need to know the reference to caller FSM (GSCON FSM).</span><br><span>@@ -254,6 +258,12 @@</span><br><span> </span><br><span>     lchan->conn = conn;</span><br><span>       conn->lchan = lchan;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Make up a new IMSI for this test, for logging the subscriber */</span><br><span style="color: hsl(120, 100%, 40%);">+    next_imsi ++;</span><br><span style="color: hsl(120, 100%, 40%);">+ snprintf(imsi, sizeof(imsi), "%06u", next_imsi);</span><br><span style="color: hsl(120, 100%, 40%);">+    lchan->conn->bsub = bsc_subscr_find_or_create_by_imsi(net->bsc_subscribers, imsi);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>        /* kick the FSM from INIT through to the ACTIVE state */</span><br><span>     osmo_fsm_inst_dispatch(conn->fi, GSCON_EV_A_CONN_REQ, NULL);</span><br><span>      osmo_fsm_inst_dispatch(conn->fi, GSCON_EV_A_CONN_CFM, NULL);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9290">change 9290</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/9290"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I52fa8f3183c93ed362d8252d20daf00c60a117c8 </div>
<div style="display:none"> Gerrit-Change-Number: 9290 </div>
<div style="display:none"> Gerrit-PatchSet: 8 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>