]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/testsuite.cpp
Fix possible segfault on giving an unknown cmdline argument. index holds the ref...
[user/henk/code/inspircd.git] / src / testsuite.cpp
index 9343e70cf0ba263a5797e400e34897e902f3a448..8f89fd65e144b63b689a7b7fea3854e7071cffd0 100644 (file)
@@ -3,7 +3,7 @@
  *        +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *               the file COPYING for details.
@@ -186,9 +186,7 @@ bool TestSuite::DoThreadTests()
        cout << "Creating new ThreadEngine class...\n";
        try
        {
-               ThreadEngineFactory* tef = new ThreadEngineFactory();
-               te = tef->Create(ServerInstance);
-               delete tef;
+               te = new ThreadEngine(ServerInstance);
        }
        catch (...)
        {
@@ -205,7 +203,7 @@ bool TestSuite::DoThreadTests()
        {
                try
                {
-                       te->Create(tst);
+                       te->Start(tst);
                }
                catch (CoreException &ce)
                {