added testcase for #936

This commit is contained in:
Guenter Obiltschnig 2015-09-11 14:01:10 +02:00
parent 8d8074fc00
commit e63c56cafb
2 changed files with 9 additions and 0 deletions

View File

@ -499,6 +499,13 @@ void ThreadTest::testAffinity()
}
void ThreadTest::testJoinNotStarted()
{
Thread thread;
thread.join();
}
void ThreadTest::setUp()
{
}
@ -528,6 +535,7 @@ CppUnit::Test* ThreadTest::suite()
CppUnit_addTest(pSuite, ThreadTest, testThreadStackSize);
CppUnit_addTest(pSuite, ThreadTest, testSleep);
CppUnit_addTest(pSuite, ThreadTest, testAffinity);
CppUnit_addTest(pSuite, ThreadTest, testJoinNotStarted);
return pSuite;
}

View File

@ -41,6 +41,7 @@ public:
void testThreadStackSize();
void testSleep();
void testAffinity();
void testJoinNotStarted();
void setUp();
void tearDown();