]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: disable leak sanitizer for unittests
authorVincent Bernat <vincent@bernat.im>
Thu, 17 Mar 2016 23:46:37 +0000 (00:46 +0100)
committerVincent Bernat <vincent@bernat.im>
Fri, 18 Mar 2016 18:34:54 +0000 (19:34 +0100)
Unittests will leak because it's not easy to cleanup after them. We
still want other sanitizer checks.

tests/common.c

index 95ec6f4b7f2e954152ea3ddf9026fa31ada9a21f..36528b77ad2e1e32ac912caadec2d153cfed935d 100644 (file)
@@ -147,3 +147,8 @@ pcap_teardown()
                filename = NULL;
        }
 }
+
+/* Disable leak detection sanitizer */
+int __lsan_is_turned_off() {
+       return 1;
+}