From 96ca7befeae1f59908957ddb350b7d0aef902783 Mon Sep 17 00:00:00 2001 From: Ben Caimano Date: Tue, 24 Nov 2020 18:48:14 +0000 Subject: SERVER-53069 Disable death tests on address and memory sanitizer variants --- src/mongo/unittest/death_test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mongo/unittest/death_test.cpp b/src/mongo/unittest/death_test.cpp index 3ada74ededb..31f98f37f9e 100644 --- a/src/mongo/unittest/death_test.cpp +++ b/src/mongo/unittest/death_test.cpp @@ -96,7 +96,10 @@ void sanitizerDieCallback() { #endif void DeathTestBase::_doTest() { -#if defined(_WIN32) +#if defined(__has_feature) && (__has_feature(address_sanitizer) || __has_feature(memory_sanitizer)) + LOGV2(5306900, "Skipping death test in sanitizer build"); + return; +#elif defined(_WIN32) LOGV2(24133, "Skipping death test on Windows"); return; #elif defined(__APPLE__) && (TARGET_OS_TV || TARGET_OS_WATCH) -- cgit v1.2.1