<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21212">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">NS_Emulation: Fail if an unsupported NS provider is chosen<br><br>This took me quite some time: Tried to use NS_PROVIDER_FR, but the<br>code was compiled without support for it.  It just failed silently<br>without printing any error or ever sending any message on the FR link.<br><br>Change-Id: I96475127a2079830b3456a8e288adf4c6c908887<br>---<br>M library/NS_Emulation.ttcnpp<br>1 file changed, 2 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/12/21212/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp</span><br><span>index 19de9d3..2e03880 100644</span><br><span>--- a/library/NS_Emulation.ttcnpp</span><br><span>+++ b/library/NS_Emulation.ttcnpp</span><br><span>@@ -382,6 +382,8 @@</span><br><span>                  connect(self:NSCP, vc_NSP_FR:NSE);</span><br><span>                   vc_NSP_FR.start(NS_Provider_FR.main(g_nsvc_config, g_config, id));</span><br><span> #endif</span><br><span style="color: hsl(120, 100%, 40%);">+          } else {</span><br><span style="color: hsl(120, 100%, 40%);">+                      Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Unsupported NS provider");</span><br><span>             }</span><br><span> </span><br><span>                f_change_state(NSVC_S_DEAD_BLOCKED);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21212">change 21212</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/+/21212"/><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: I96475127a2079830b3456a8e288adf4c6c908887 </div>
<div style="display:none"> Gerrit-Change-Number: 21212 </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>