]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/testsuite.cpp
Remove the craqy self-restarting loop in trunk, and use proper safe iterators to...
[user/henk/code/inspircd.git] / src / testsuite.cpp
index 2396f142c4a57ce76359340afa2e434e0134d575..02d806480781e99d3e93cac1c8b0926b43ce1d80 100644 (file)
@@ -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;