- added assertion for destruction
This commit is contained in:
parent
4486d5900a
commit
7f8cfb0b24
1 changed files with 1 additions and 1 deletions
|
@ -35,6 +35,6 @@ void test_thread_pool(tester_t *tester)
|
|||
thread_pool_t *pool = thread_pool_create(desired_pool_size);
|
||||
pool->get_pool_size(pool, &pool_size);
|
||||
tester->assert_true(tester, (desired_pool_size == pool_size), "thread creation");
|
||||
pool->destroy(pool);
|
||||
tester->assert_true(tester, (pool->destroy(pool) == SUCCESS), "threadpool destruction");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue