From 79d1eb19d73beeb409b52ab5102819498685df4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 1 Oct 2018 10:07:37 +0300 Subject: [PATCH] Disable unit test leak checks for DEB packages The unit tests themselves don't leak memory but some of the core components of MaxScale do. To ignore this, ASAN_OPTIONS needs to be defined. --- BUILD/build_deb_local.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILD/build_deb_local.sh b/BUILD/build_deb_local.sh index 0640673ef..1c8c078de 100755 --- a/BUILD/build_deb_local.sh +++ b/BUILD/build_deb_local.sh @@ -16,6 +16,8 @@ make if [[ "$cmake_flags" =~ "BUILD_TESTS" ]] then + # We don't care about memory leaks in the tests (e.g. servers are never freed) + export ASAN_OPTIONS=detect_leaks=0 # All tests must pass otherwise the build is considered a failure ctest --output-on-failure || exit 1 fi