mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-15 10:51:27 +00:00
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
This commit is contained in:
@@ -101,5 +101,9 @@ int main(int argc, char *argv[])
|
|||||||
cout << "search fkey:" << endl;
|
cout << "search fkey:" << endl;
|
||||||
gConfig.find("fkey",cout);
|
gConfig.find("fkey",cout);
|
||||||
|
|
||||||
gConfig.getNum("supposedtoabort");
|
try {
|
||||||
|
gConfig.getNum("supposedtoabort");
|
||||||
|
} catch (ConfigurationTableKeyNotFound) {
|
||||||
|
cout << "ConfigurationTableKeyNotFound exception successfully caught." << endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user