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:
parent
62e5f988c5
commit
79d1eb19d7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user