<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20547">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: Make f_power_from_band() fail in case of unknown band<br><br>Otherwise we get into weird error cases about unbound variables that are hard to debug.<br><br>Change-Id: I5716a5dc6ce95daa663be87a1a4fe611b719495e<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 3 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/47/20547/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn</span><br><span>index bdd8546..9f63ca8 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -2824,6 +2824,9 @@</span><br><span>            min_dbm_level := {15};</span><br><span>               max_dbm_level := {30};</span><br><span>       }</span><br><span style="color: hsl(120, 100%, 40%);">+     case else {</span><br><span style="color: hsl(120, 100%, 40%);">+           Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Unsupported band: ", band);</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span>    }</span><br><span> </span><br><span>        return rv;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20547">change 20547</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/+/20547"/><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: I5716a5dc6ce95daa663be87a1a4fe611b719495e </div>
<div style="display:none"> Gerrit-Change-Number: 20547 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>