X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Ftestsuite.cpp;h=02d806480781e99d3e93cac1c8b0926b43ce1d80;hb=caf0301c894d41aa04ceb685ef981d6292fecd2d;hp=7f8a38d54eb3981226c6f60e0f4e4e212525c7ba;hpb=08277954dc8334d72e31fe0f768855056e282f27;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/testsuite.cpp b/src/testsuite.cpp index 7f8a38d54..02d806480 100644 --- a/src/testsuite.cpp +++ b/src/testsuite.cpp @@ -13,7 +13,6 @@ /* $Core: libIRCDtestsuite */ -#include "inspircd_config.h" #include "inspircd.h" #include "testsuite.h" #include "threadengine.h" @@ -115,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;