- added assertion for destruction
authorMartin Willi <martin@strongswan.org>
Fri, 4 Nov 2005 09:39:07 +0000 (09:39 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 4 Nov 2005 09:39:07 +0000 (09:39 -0000)
Source/charon/tests/thread_pool_test.c

index bc481af..bdde190 100644 (file)
@@ -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");
 }