Remove explicit leak detective checks as these are now done for all tests
This commit is contained in:
@@ -388,14 +388,10 @@ START_TEST(test_create)
|
|||||||
chunk_t data = chunk_from_str("foobar");
|
chunk_t data = chunk_from_str("foobar");
|
||||||
bio_reader_t *reader;
|
bio_reader_t *reader;
|
||||||
|
|
||||||
lib->leak_detective->set_state(lib->leak_detective, TRUE);
|
|
||||||
|
|
||||||
data = chunk_clone(data);
|
data = chunk_clone(data);
|
||||||
reader = bio_reader_create(data);
|
reader = bio_reader_create(data);
|
||||||
reader->destroy(reader);
|
reader->destroy(reader);
|
||||||
chunk_free(&data);
|
chunk_free(&data);
|
||||||
|
|
||||||
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
|
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
@@ -404,13 +400,9 @@ START_TEST(test_create_own)
|
|||||||
chunk_t data = chunk_from_str("foobar");
|
chunk_t data = chunk_from_str("foobar");
|
||||||
bio_reader_t *reader;
|
bio_reader_t *reader;
|
||||||
|
|
||||||
lib->leak_detective->set_state(lib->leak_detective, TRUE);
|
|
||||||
|
|
||||||
data = chunk_clone(data);
|
data = chunk_clone(data);
|
||||||
reader = bio_reader_create_own(data);
|
reader = bio_reader_create_own(data);
|
||||||
reader->destroy(reader);
|
reader->destroy(reader);
|
||||||
|
|
||||||
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
|
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|||||||
@@ -302,8 +302,6 @@ START_TEST(test_get_buf)
|
|||||||
bio_writer_t *writer;
|
bio_writer_t *writer;
|
||||||
chunk_t data1, data2;
|
chunk_t data1, data2;
|
||||||
|
|
||||||
lib->leak_detective->set_state(lib->leak_detective, TRUE);
|
|
||||||
|
|
||||||
writer = bio_writer_create(0);
|
writer = bio_writer_create(0);
|
||||||
writer->write_uint8(writer, 1);
|
writer->write_uint8(writer, 1);
|
||||||
data1 = writer->get_buf(writer);
|
data1 = writer->get_buf(writer);
|
||||||
@@ -314,8 +312,6 @@ START_TEST(test_get_buf)
|
|||||||
ck_assert(chunk_equals(data1, data2));
|
ck_assert(chunk_equals(data1, data2));
|
||||||
ck_assert(data1.ptr == data2.ptr);
|
ck_assert(data1.ptr == data2.ptr);
|
||||||
writer->destroy(writer);
|
writer->destroy(writer);
|
||||||
|
|
||||||
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
|
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
@@ -324,8 +320,6 @@ START_TEST(test_extract_buf)
|
|||||||
bio_writer_t *writer;
|
bio_writer_t *writer;
|
||||||
chunk_t data1, data2;
|
chunk_t data1, data2;
|
||||||
|
|
||||||
lib->leak_detective->set_state(lib->leak_detective, TRUE);
|
|
||||||
|
|
||||||
writer = bio_writer_create(0);
|
writer = bio_writer_create(0);
|
||||||
writer->write_uint8(writer, 1);
|
writer->write_uint8(writer, 1);
|
||||||
data1 = writer->extract_buf(writer);
|
data1 = writer->extract_buf(writer);
|
||||||
@@ -346,8 +340,6 @@ START_TEST(test_extract_buf)
|
|||||||
|
|
||||||
writer->destroy(writer);
|
writer->destroy(writer);
|
||||||
chunk_free(&data1);
|
chunk_free(&data1);
|
||||||
|
|
||||||
ck_assert_int_eq(lib->leak_detective->leaks(lib->leak_detective), 0);
|
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user