diff options
author | Pixel <pixel@nobis-crew.org> | 2011-12-04 11:35:26 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-12-04 11:35:26 -0800 |
commit | c39471409ed91e320b834979053e76738a58d6fc (patch) | |
tree | 3a6843c14ce1dc1685278cd2ea0623a16dcc13d1 | |
parent | d440c3f50a918a932293ad98bcec96eaa4683222 (diff) |
Adding at least one TAssert into test-Threads, and fixing a typo.
-rw-r--r-- | includes/HttpServer.h | 2 | ||||
-rw-r--r-- | tests/test-Threads.cc | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/includes/HttpServer.h b/includes/HttpServer.h index 9885d50..3867252 100644 --- a/includes/HttpServer.h +++ b/includes/HttpServer.h @@ -21,7 +21,7 @@ class HttpServer { class Action { public: Action(const Regex & regex, const Regex & host = Regexes::any) : m_regex(regex), m_host(host), m_refCount(0) { } - ~Action() { AAssert(m_refCount == 0, "Don't delete an Action directl"); } + ~Action() { AAssert(m_refCount == 0, "Don't delete an Action directly"); } struct ActionMatch { Regex::Captures uri, host; }; diff --git a/tests/test-Threads.cc b/tests/test-Threads.cc index 50cc741..8e0817d 100644 --- a/tests/test-Threads.cc +++ b/tests/test-Threads.cc @@ -3,12 +3,15 @@ using namespace Balau; +volatile bool threadWorked = false; + class TestThread : public Thread { virtual void * proc(); }; void * TestThread::proc() { Printer::log(M_STATUS, "Into a thread"); + threadWorked = true; return NULL; } @@ -23,5 +26,7 @@ void MainTask::Do() { Printer::log(M_STATUS, "Deleting thread"); delete t; + TAssert(threadWorked); + Printer::log(M_STATUS, "Test::Threads passed."); } |