From c39471409ed91e320b834979053e76738a58d6fc Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 4 Dec 2011 11:35:26 -0800 Subject: Adding at least one TAssert into test-Threads, and fixing a typo. --- tests/test-Threads.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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."); } -- cgit v1.2.3