X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Ftestsuite.cpp;h=02d806480781e99d3e93cac1c8b0926b43ce1d80;hb=f2078a777e1032d7bd237b165bc93404fe6c7734;hp=2396f142c4a57ce76359340afa2e434e0134d575;hpb=9bc7a6139db7ec7f1da676c486ca309f070a78e4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/testsuite.cpp b/src/testsuite.cpp index 2396f142c..02d806480 100644 --- a/src/testsuite.cpp +++ b/src/testsuite.cpp @@ -114,7 +114,21 @@ bool TestSuite::DoThreadTests() TestSuiteThread* tst = new TestSuiteThread(); cout << "ThreadEngine::Create on TestSuiteThread...\n"; - te->Create(tst); + try + { + try + { + te->Create(tst); + } + catch (CoreException &ce) + { + cout << "Failure: " << ce.GetReason() << endl; + } + } + catch (...) + { + cout << "Failure, unhandled exception\n"; + } cout << "Type any line and press enter to end test.\n"; cin >> anything;