Suppress LSAN leak reports from ConnectionReaderActorState (#8889)

This commit is contained in:
Marian Dvorsky 2022-11-21 17:58:22 +01:00 committed by GitHub
parent 3c97f43138
commit f7d1310d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -292,6 +292,7 @@ if(NOT WIN32)
--retain-client-lib-copies
)
set_tests_properties("${test_name}" PROPERTIES TIMEOUT 300)
set_tests_properties("${test_name}" PROPERTIES ENVIRONMENT "${SANITIZER_OPTIONS}")
endforeach()
add_test(NAME fdb_c_upgrade_to_future_version

View File

@ -0,0 +1,5 @@
# LeakSanitizer suppressions file for FDB
# https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
# Not all incoming connections are cleanly shut down in client API tests
leak:ConnectionReaderActorState

View File

@ -10,7 +10,7 @@ set(TEST_AGGREGATE_TRACES "NONE" CACHE STRING "Create aggregated trace files (NO
set(TEST_LOG_FORMAT "xml" CACHE STRING "Format for test trace files (xml, json)")
set(TEST_INCLUDE ".*" CACHE STRING "Include only tests that match the given regex")
set(TEST_EXCLUDE ".^" CACHE STRING "Exclude all tests matching the given regex")
set(SANITIZER_OPTIONS "UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1;TSAN_OPTIONS=suppressions=${CMAKE_SOURCE_DIR}/contrib/tsan.suppressions" CACHE STRING "Environment variables setting sanitizer options")
set(SANITIZER_OPTIONS "UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1;TSAN_OPTIONS=suppressions=${CMAKE_SOURCE_DIR}/contrib/tsan.suppressions;LSAN_OPTIONS=suppressions=${CMAKE_SOURCE_DIR}/contrib/lsan.suppressions" CACHE STRING "Environment variables setting sanitizer options")
# for the restart test we optimally want to use the last stable fdbserver
# to test upgrades