diff --git a/BUILD/build_rpm_local.sh b/BUILD/build_rpm_local.sh index 42d9e7798..136d072e7 100755 --- a/BUILD/build_rpm_local.sh +++ b/BUILD/build_rpm_local.sh @@ -14,6 +14,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 diff --git a/cmake/FindASAN.cmake b/cmake/FindASAN.cmake index dea230ea3..a94427581 100644 --- a/cmake/FindASAN.cmake +++ b/cmake/FindASAN.cmake @@ -4,7 +4,7 @@ # ASAN_FOUND - If AddressSanitizer was found # ASAN_LIBRARIES - Path to the libasan library -find_library(ASAN_LIBRARIES NAMES libasan.so.0 libasan.so.3 libasan.so.4) +find_library(ASAN_LIBRARIES NAMES libasan.so.0 libasan.so.1 libasan.so.2 libasan.so.3 libasan.so.4 libasan.so.5) if (ASAN_LIBRARIES) message(STATUS "Found AdressSanitizer libraries: ${ASAN_LIBRARIES}")