From ef87b1e60bdcc13f336e0bbce7c1e9b667243479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 30 Nov 2018 13:02:15 +0100 Subject: [PATCH] Don't check the memory leaks in the libdns tests as they hide the cmocka assertion failures --- lib/dns/tests/dnstest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dns/tests/dnstest.c b/lib/dns/tests/dnstest.c index c2f927095d..c1418fa534 100644 --- a/lib/dns/tests/dnstest.c +++ b/lib/dns/tests/dnstest.c @@ -137,6 +137,9 @@ dns_test_begin(FILE *logfile, bool start_managers) { INSIST(mctx == NULL); CHECK(isc_mem_create(0, 0, &mctx)); + /* Don't check the memory leaks as they hide the assertions */ + isc_mem_setdestroycheck(mctx, false); + INSIST(!dst_active); CHECK(dst_lib_init(mctx, NULL)); dst_active = true;