Enable leak detective for all test cases

This commit is contained in:
Tobias Brunner
2013-06-11 11:03:13 +02:00
parent 2b4902973b
commit 95e9915074
14 changed files with 129 additions and 22 deletions
+5 -3
View File
@@ -14,7 +14,7 @@
* for more details.
*/
#include <check.h>
#include "test_suite.h"
#include <collections/enumerator.h>
#include <collections/linked_list.h>
@@ -82,15 +82,17 @@ END_TEST
static int destroy_data_called;
static void setup_destroy_data()
START_SETUP(setup_destroy_data)
{
destroy_data_called = 0;
}
END_SETUP
static void teardown_destroy_data()
START_TEARDOWN(teardown_destroy_data)
{
ck_assert_int_eq(destroy_data_called, 1);
}
END_TEARDOWN
static void destroy_data(void *data)
{