X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Ftestsuite.cpp;h=02d806480781e99d3e93cac1c8b0926b43ce1d80;hb=bc4828bbbde8a596b80b8f1d2c7349551f0f43b8;hp=939c6435082e4414d5dc0d7413b1926d5c9a6f70;hpb=3af16c1489796197335e5eb7067d396ffee4f37e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/testsuite.cpp b/src/testsuite.cpp index 939c64350..02d806480 100644 --- a/src/testsuite.cpp +++ b/src/testsuite.cpp @@ -116,11 +116,18 @@ bool TestSuite::DoThreadTests() cout << "ThreadEngine::Create on TestSuiteThread...\n"; try { - te->Create(tst); + try + { + te->Create(tst); + } + catch (CoreException &ce) + { + cout << "Failure: " << ce.GetReason() << endl; + } } - catch (CoreException &ce) + catch (...) { - cout << "Failure: " << ce.GetReason() << endl;s + cout << "Failure, unhandled exception\n"; } cout << "Type any line and press enter to end test.\n";