]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/testsuite.cpp
Change of configure message to plainer english as requested by voidzero
[user/henk/code/inspircd.git] / src / testsuite.cpp
index 60817970333b0d0cd85b85bf7d5e5d1873c90953..2396f142c4a57ce76359340afa2e434e0134d575 100644 (file)
@@ -33,10 +33,10 @@ class TestSuiteThread : public Thread
 
        virtual void Run()
        {
-               while (1)
+               while (GetExitFlag() == false)
                {
                        cout << "Test suite thread run...\n";
-                       sleep(10);
+                       sleep(5);
                }
        }
 };
@@ -108,21 +108,25 @@ bool TestSuite::DoThreadTests()
                cout << "Creation failed, test failure.\n";
                return false;
        }
-       cout << "Creation success!\n";
-
-       cout << "Creating new thread of type TestSuiteThread\n";
+       cout << "Creation success, type " << te->GetName() << "\n";
 
+       cout << "Allocate: new TestSuiteThread...\n";
        TestSuiteThread* tst = new TestSuiteThread();
 
+       cout << "ThreadEngine::Create on TestSuiteThread...\n";
        te->Create(tst);
 
-       cout << "Press enter to end test.";
+       cout << "Type any line and press enter to end test.\n";
        cin >> anything;
 
-       /* Auto frees thread */
+       /* Thread engine auto frees thread on delete */
+       cout << "Waiting for thread to exit... " << flush;
        delete tst;
+       cout << "Done!\n";
 
+       cout << "Delete ThreadEngine... ";
        delete te;
+       cout << "Done!\n";
 
        return true;
 }