X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Ftestsuite.cpp;h=02d806480781e99d3e93cac1c8b0926b43ce1d80;hb=f21617328a8a576c8ada619f2934ac31f0dec717;hp=841c1c41bdab2c5dff3600410428a795ec2511a6;hpb=62f015300fc0c47337b62017598fef6ea3a6d024;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/testsuite.cpp b/src/testsuite.cpp index 841c1c41b..02d806480 100644 --- a/src/testsuite.cpp +++ b/src/testsuite.cpp @@ -108,13 +108,27 @@ bool TestSuite::DoThreadTests() cout << "Creation failed, test failure.\n"; return false; } - cout << "Creation success!\n"; + cout << "Creation success, type " << te->GetName() << "\n"; - cout << "Creating new thread of type TestSuiteThread...\n"; + cout << "Allocate: new TestSuiteThread...\n"; TestSuiteThread* tst = new TestSuiteThread(); - cout << "Create new thread based on TestSuiteThread...\n"; - te->Create(tst); + cout << "ThreadEngine::Create on TestSuiteThread...\n"; + 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;