Add tests for ThreadPool::getThreadCount()
This commit is contained in:
parent
5c72ecb74b
commit
4fd463a870
1 changed files with 11 additions and 0 deletions
|
@ -66,3 +66,14 @@ TEST(ECThreadPool, Simple) {
|
|||
|
||||
ASSERT_EQ(data.load(), 11);
|
||||
}
|
||||
|
||||
TEST(ECThreadPool, QueryCount) {
|
||||
{
|
||||
OneThreadPool oneP;
|
||||
ASSERT_EQ(1, oneP.getThreadCount());
|
||||
}
|
||||
{
|
||||
ThreeThreadPool threeP;
|
||||
ASSERT_EQ(3, threeP.getThreadCount());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue