From b55bba2fc1853d56c2b2bccef00c0237d22e1b3a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 18 Mar 2016 00:46:37 +0100 Subject: [PATCH] tests: disable leak sanitizer for unittests Unittests will leak because it's not easy to cleanup after them. We still want other sanitizer checks. --- tests/common.c | 5 +++++ 1 file changed, 5 insertions(+) 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; +} -- 2.39.5