<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26619">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc: detect subscr and conn leaks during f_shutdown_helper()<br><br>Invoke f_verify_talloc_count() for bsc_subscr and<br>gsm_subscriber_connection, expecting none to remain after each test.<br><br>This makes numerous tests fail, where the test does not properly release<br>the RSL and BSSAP connections. An upcoming patch fixes all of those<br>cases: I9396efcabc085d2850244c6468b83c5f3a3ff3a2<br><br>Related: OS#5337<br>Change-Id: I69d4c5c6f8d499bb7f0b96a48af045361433c57b<br>---<br>M bsc/BSC_Tests.ttcn<br>1 file changed, 5 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/19/26619/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn</span><br><span>index b1deaf5..b1e9875 100644</span><br><span>--- a/bsc/BSC_Tests.ttcn</span><br><span>+++ b/bsc/BSC_Tests.ttcn</span><br><span>@@ -855,6 +855,11 @@</span><br><span> </span><br><span> </span><br><span> friend function f_shutdown_helper() runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Run the subscr and conn leak test only when the VTY is initialized */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (BSCVTY.checkstate("Mapped")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ f_verify_talloc_count(BSCVTY, {"struct bsc_subscr", "struct gsm_subscriber_connection"});</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> all component.stop;</span><br><span> setverdict(pass);</span><br><span> mtc.stop;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26619">change 26619</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/+/26619"/><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: I69d4c5c6f8d499bb7f0b96a48af045361433c57b </div>
<div style="display:none"> Gerrit-Change-Number: 26619 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>