Alexander's patch #3: Configuration Tests should not include crashing
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4459 19bc5d8c-e614-43d4-8b26-e1612bc8e597
diff --git a/CommonLibs/ConfigurationTest.cpp b/CommonLibs/ConfigurationTest.cpp
index 5acb9d5..bff04e6 100644
--- a/CommonLibs/ConfigurationTest.cpp
+++ b/CommonLibs/ConfigurationTest.cpp
@@ -101,5 +101,9 @@
cout << "search fkey:" << endl;
gConfig.find("fkey",cout);
- gConfig.getNum("supposedtoabort");
+ try {
+ gConfig.getNum("supposedtoabort");
+ } catch (ConfigurationTableKeyNotFound) {
+ cout << "ConfigurationTableKeyNotFound exception successfully caught." << endl;
+ }
}