Remove explicit leak detective checks as these are now done for all tests

This commit is contained in:
Tobias Brunner
2013-06-11 11:03:13 +02:00
parent 95e9915074
commit f2eeb54e8b
2 changed files with 0 additions and 16 deletions
@@ -388,14 +388,10 @@ START_TEST(test_create)
chunk_t data = chunk_from_str("foobar");
bio_reader_t *reader;
lib->leak_detective->set_state(lib->leak_detective, TRUE);
data = chunk_clone(data);
reader = bio_reader_create(data);
reader->destroy(reader);
chunk_free(&data);
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
}
END_TEST
@@ -404,13 +400,9 @@ START_TEST(test_create_own)
chunk_t data = chunk_from_str("foobar");
bio_reader_t *reader;
lib->leak_detective->set_state(lib->leak_detective, TRUE);
data = chunk_clone(data);
reader = bio_reader_create_own(data);
reader->destroy(reader);
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
}
END_TEST
@@ -302,8 +302,6 @@ START_TEST(test_get_buf)
bio_writer_t *writer;
chunk_t data1, data2;
lib->leak_detective->set_state(lib->leak_detective, TRUE);
writer = bio_writer_create(0);
writer->write_uint8(writer, 1);
data1 = writer->get_buf(writer);
@@ -314,8 +312,6 @@ START_TEST(test_get_buf)
ck_assert(chunk_equals(data1, data2));
ck_assert(data1.ptr == data2.ptr);
writer->destroy(writer);
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
}
END_TEST
@@ -324,8 +320,6 @@ START_TEST(test_extract_buf)
bio_writer_t *writer;
chunk_t data1, data2;
lib->leak_detective->set_state(lib->leak_detective, TRUE);
writer = bio_writer_create(0);
writer->write_uint8(writer, 1);
data1 = writer->extract_buf(writer);
@@ -346,8 +340,6 @@ START_TEST(test_extract_buf)
writer->destroy(writer);
chunk_free(&data1);
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
}
END_TEST