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.
This commit is contained in:
Markus Mäkelä 2018-10-01 10:07:37 +03:00
parent 62e5f988c5
commit 79d1eb19d7
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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