<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/10004">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;">MSC_ConnectionHandler: more verbosity for f_check_mgcp_expectations()<br><br>The function f_check_mgcp_expectations() checks the counters that<br>count the occurrence of MDCX and CRCX messages against computed<br>expected values. At the moment it is not easy to spot where exactly<br>the deviation occurred. Lets add some log output so that we can see<br>which type of message on which connection was missing or too much.<br>Also add a string parameter that is set to the calling functions<br>name so that we know from where the check has been triggered.<br><br>- Add more verbose log output for counters<br>- Add parameter to prepend to the log line<br><br>Change-Id: Ida0eba4ef3c1db977d392267ef76ec37b87133b3<br>Related: OS#3292<br>---<br>M bsc/MSC_ConnectionHandler.ttcn<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn</span><br><span>index 94cd9ef..63d017f 100644</span><br><span>--- a/bsc/MSC_ConnectionHandler.ttcn</span><br><span>+++ b/bsc/MSC_ConnectionHandler.ttcn</span><br><span>@@ -796,6 +796,10 @@</span><br><span>  * expected */</span><br><span> function f_check_mgcp_expectations() runs on MSC_ConnHdlr {</span><br><span>         for (var integer i:= 0; i < sizeof(g_media.mgcp_conn); i := i+1) {</span><br><span style="color: hsl(120, 100%, 40%);">+         log(testcasename(), ": Check MGCP test expectations for g_media.mgcp_conn[", i , "]:",</span><br><span style="color: hsl(120, 100%, 40%);">+                " crcx_seen=", g_media.mgcp_conn[i].crcx_seen, ", crcx_seen_exp=", g_media.mgcp_conn[i].crcx_seen_exp,</span><br><span style="color: hsl(120, 100%, 40%);">+                    ", mdcx_seen=", g_media.mgcp_conn[i].mdcx_seen, ", mdcx_seen_exp=", g_media.mgcp_conn[i].mdcx_seen_exp);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>           if(g_media.mgcp_conn[i].crcx_seen != g_media.mgcp_conn[i].crcx_seen_exp) {</span><br><span>                   setverdict(fail, "unexpected number of MGW-CRCX transactions");</span><br><span>            }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10004">change 10004</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/10004"/><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: Ida0eba4ef3c1db977d392267ef76ec37b87133b3 </div>
<div style="display:none"> Gerrit-Change-Number: 10004 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>