]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/testsuite.cpp
Remote /MAP (that now doesn't confuse clients ;p)
[user/henk/code/inspircd.git] / src / testsuite.cpp
index 7f8a38d54eb3981226c6f60e0f4e4e212525c7ba..02d806480781e99d3e93cac1c8b0926b43ce1d80 100644 (file)
@@ -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;