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:
kurtis.heimerl 2012-11-11 10:15:43 +00:00
parent bcf60a8fc9
commit 42267fd116
1 changed files with 5 additions and 1 deletions

View File

@ -101,5 +101,9 @@ int main(int argc, char *argv[])
cout << "search fkey:" << endl;
gConfig.find("fkey",cout);
gConfig.getNum("supposedtoabort");
try {
gConfig.getNum("supposedtoabort");
} catch (ConfigurationTableKeyNotFound) {
cout << "ConfigurationTableKeyNotFound exception successfully caught." << endl;
}
}