laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21212 )


Change subject: NS_Emulation: Fail if an unsupported NS provider is chosen
......................................................................

NS_Emulation: Fail if an unsupported NS provider is chosen

This took me quite some time: Tried to use NS_PROVIDER_FR, but the
code was compiled without support for it.  It just failed silently
without printing any error or ever sending any message on the FR link.

Change-Id: I96475127a2079830b3456a8e288adf4c6c908887
---
M library/NS_Emulation.ttcnpp
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/12/21212/1

diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp
index 19de9d3..2e03880 100644
--- a/library/NS_Emulation.ttcnpp
+++ b/library/NS_Emulation.ttcnpp
@@ -382,6 +382,8 @@
                        connect(self:NSCP, vc_NSP_FR:NSE);
                        vc_NSP_FR.start(NS_Provider_FR.main(g_nsvc_config, 
g_config, id));
 #endif
+               } else {
+                       Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, 
"Unsupported NS provider");
                }

                f_change_state(NSVC_S_DEAD_BLOCKED);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21212
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I96475127a2079830b3456a8e288adf4c6c908887
Gerrit-Change-Number: 21212
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to