<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13169">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">msc: as_clear_cmd_compl_disc: log unexpected message<br><br>When receiving an unexpected BSSMAP message that fails the test, log it.<br><br>Change-Id: I5cafac3318a50567f1916ea670af55558e97bf17<br>---<br>M msc/BSC_ConnectionHandler.ttcn<br>1 file changed, 3 insertions(+), 2 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/69/13169/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn</span><br><span>index 8aace29..686f474 100644</span><br><span>--- a/msc/BSC_ConnectionHandler.ttcn</span><br><span>+++ b/msc/BSC_ConnectionHandler.ttcn</span><br><span>@@ -785,6 +785,7 @@</span><br><span> }</span><br><span> /* expect a clear command */</span><br><span> altstep as_clear_cmd_compl_disc(float t := 5.0) runs on BSC_ConnHdlr {</span><br><span style="color: hsl(120, 100%, 40%);">+        var PDU_BSSAP bssap;</span><br><span>         [] BSSAP.receive(tr_BSSMAP_ClearCommand) {</span><br><span>           BSSAP.send(ts_BSSMAP_ClearComplete);</span><br><span>                 alt {</span><br><span>@@ -797,8 +798,8 @@</span><br><span>                  }</span><br><span>            }</span><br><span>            }</span><br><span style="color: hsl(0, 100%, 40%);">-       [] BSSAP.receive {</span><br><span style="color: hsl(0, 100%, 40%);">-              setverdict(fail, "Unexpected BSSMAP while waiting for ClearCommand");</span><br><span style="color: hsl(120, 100%, 40%);">+       [] BSSAP.receive(tr_BSSAP_BSSMAP) -> value bssap {</span><br><span style="color: hsl(120, 100%, 40%);">+         setverdict(fail, "Unexpected BSSMAP while waiting for ClearCommand", bssap);</span><br><span>               mtc.stop;</span><br><span>            }</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13169">change 13169</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/13169"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5cafac3318a50567f1916ea670af55558e97bf17 </div>
<div style="display:none"> Gerrit-Change-Number: 13169 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>