X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Ftestsuite.cpp;h=02d806480781e99d3e93cac1c8b0926b43ce1d80;hb=bc4828bbbde8a596b80b8f1d2c7349551f0f43b8;hp=14ea7ebeddaaffdc3ec07b9acb74908313aa3460;hpb=59c8e5d0644eab87ab7c8f21f8ca2eb1ae81a8da;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/testsuite.cpp b/src/testsuite.cpp index 14ea7ebed..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; + cout << "Failure, unhandled exception\n"; } cout << "Type any line and press enter to end test.\n";