GH #140: Poco::Runnable threading cleanup issue

This commit is contained in:
aleks-f
2013-03-29 14:02:53 -05:00
parent ad5361ede1
commit 6719d3448f
4 changed files with 27 additions and 3 deletions

View File

@@ -264,6 +264,19 @@ void ThreadTest::testNotJoin()
}
void ThreadTest::testNotRun()
{
Thread thread;
}
void ThreadTest::testNotRunJoin()
{
Thread thread;
thread.join();
}
void ThreadTest::testThreadTarget()
{
ThreadTarget te(&MyRunnable::staticFunc);
@@ -374,6 +387,8 @@ CppUnit::Test* ThreadTest::suite()
CppUnit_addTest(pSuite, ThreadTest, testThreads);
CppUnit_addTest(pSuite, ThreadTest, testJoin);
CppUnit_addTest(pSuite, ThreadTest, testNotJoin);
CppUnit_addTest(pSuite, ThreadTest, testNotRun);
CppUnit_addTest(pSuite, ThreadTest, testNotRunJoin);
CppUnit_addTest(pSuite, ThreadTest, testThreadTarget);
CppUnit_addTest(pSuite, ThreadTest, testThreadFunction);
CppUnit_addTest(pSuite, ThreadTest, testThreadStackSize);