Remove explicit leak detective checks as these are now done for all tests
authorTobias Brunner <tobias@strongswan.org>
Wed, 5 Jun 2013 12:14:12 +0000 (14:14 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Jun 2013 09:03:13 +0000 (11:03 +0200)
src/libstrongswan/tests/test_bio_reader.c
src/libstrongswan/tests/test_bio_writer.c

index 4f6f8cf..45b20db 100644 (file)
@@ -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
 
index 027606a..767f179 100644 (file)
@@ -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