[compiler-rt] 4f1f171 - Add GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST to gwp_asan unittests

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 02:00:55 PDT 2023


Author: Benjamin Kramer
Date: 2023-09-14T10:58:59+02:00
New Revision: 4f1f171f330545c7fad254a672c61eaffcd9344c

URL: https://github.com/llvm/llvm-project/commit/4f1f171f330545c7fad254a672c61eaffcd9344c
DIFF: https://github.com/llvm/llvm-project/commit/4f1f171f330545c7fad254a672c61eaffcd9344c.diff

LOG: Add GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST to gwp_asan unittests

This keeps it working after the gtest update in a866ce789eb99da4d7a486eeb60a53be6c75f4fd

Added: 
    

Modified: 
    compiler-rt/lib/gwp_asan/tests/harness.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/gwp_asan/tests/harness.cpp b/compiler-rt/lib/gwp_asan/tests/harness.cpp
index 4633d3ec6e9edf1..7ed408bedc2c3c3 100644
--- a/compiler-rt/lib/gwp_asan/tests/harness.cpp
+++ b/compiler-rt/lib/gwp_asan/tests/harness.cpp
@@ -55,7 +55,9 @@ INSTANTIATE_TEST_SUITE_P(RecoverableAndNonRecoverableTests,
 #else
 INSTANTIATE_TEST_SUITE_P(RecoverableTests, BacktraceGuardedPoolAllocator,
                          /* Recoverable */ testing::Values(true));
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BacktraceGuardedPoolAllocator);
 INSTANTIATE_TEST_SUITE_P(RecoverableAndNonRecoverableTests,
                          BacktraceGuardedPoolAllocatorDeathTest,
                          /* Recoverable */ testing::Bool());
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BacktraceGuardedPoolAllocatorDeathTest);
 #endif


        


More information about the llvm-commits mailing list