charon-tkm: Migrate tests to our own test runner
Due to problems with the external libraries tkm_init/deinit can't be called for each test case. Because of this leak detective has to be disabled for these tests.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#include <check.h>
|
||||
#include <tests/test_suite.h>
|
||||
|
||||
#include "tkm_chunk_map.h"
|
||||
|
||||
@@ -48,11 +48,20 @@ START_TEST(test_chunk_map_handling)
|
||||
}
|
||||
END_TEST
|
||||
|
||||
TCase *make_chunk_map_tests(void)
|
||||
Suite *make_chunk_map_tests()
|
||||
{
|
||||
TCase *tc = tcase_create("Chunk map tests");
|
||||
tcase_add_test(tc, test_chunk_map_creation);
|
||||
tcase_add_test(tc, test_chunk_map_handling);
|
||||
Suite *s;
|
||||
TCase *tc;
|
||||
|
||||
return tc;
|
||||
s = suite_create("chunk map");
|
||||
|
||||
tc = tcase_create("creating");
|
||||
tcase_add_test(tc, test_chunk_map_creation);
|
||||
suite_add_tcase(s, tc);
|
||||
|
||||
tc = tcase_create("handling");
|
||||
tcase_add_test(tc, test_chunk_map_handling);
|
||||
suite_add_tcase(s, tc);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user