diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-11-24 18:48:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-24 23:01:40 +0000 |
commit | 96ca7befeae1f59908957ddb350b7d0aef902783 (patch) | |
tree | 8ad264344173a85fd6cfb011d2aa61dc9db19455 | |
parent | c50282b539308d1578465fa0819e228a47d3421e (diff) | |
download | mongo-96ca7befeae1f59908957ddb350b7d0aef902783.tar.gz |
SERVER-53069 Disable death tests on address and memory sanitizer variants
-rw-r--r-- | src/mongo/unittest/death_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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) |