Guard MonotonicRingMap.MonotonicityDeathTest with GTEST_HAS_DEATH_TEST (#9388)

This commit is contained in:
Powei Feng
2025-10-31 20:45:32 +00:00
committed by GitHub
parent 4e9d691d9d
commit cb3933b349

View File

@@ -127,7 +127,7 @@ TEST(MonotonicRingMap, FindAfterWrapAround) {
ASSERT_NE(nullptr, map.find(80));
}
#if !defined(NDEBUG)
#if !defined(NDEBUG) && defined(GTEST_HAS_DEATH_TEST)
TEST(MonotonicRingMap, MonotonicityDeathTest) {
MonotonicRingMap<4, uint64_t, uint64_t> map;
map.insert(10, 100);