From: Vincent Bernat Date: Thu, 17 Mar 2016 23:46:37 +0000 (+0100) Subject: tests: disable leak sanitizer for unittests X-Git-Tag: 0.9.2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b55bba2fc1853d56c2b2bccef00c0237d22e1b3a;p=thirdparty%2Flldpd.git tests: disable leak sanitizer for unittests Unittests will leak because it's not easy to cleanup after them. We still want other sanitizer checks. --- diff --git a/tests/common.c b/tests/common.c index 95ec6f4b..36528b77 100644 --- a/tests/common.c +++ b/tests/common.c @@ -147,3 +147,8 @@ pcap_teardown() filename = NULL; } } + +/* Disable leak detection sanitizer */ +int __lsan_is_turned_off() { + return 1; +}