From 1e4d31008ff9e095de3ff35a3db7b66773eab54f Mon Sep 17 00:00:00 2001 From: kosak Date: Tue, 14 Jul 2015 20:26:09 +0000 Subject: [PATCH] Control death test with an #ifdef guard. --- test/gtest-death-test_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/gtest-death-test_test.cc b/test/gtest-death-test_test.cc index d62cf6ef..bb4a3d1b 100644 --- a/test/gtest-death-test_test.cc +++ b/test/gtest-death-test_test.cc @@ -510,8 +510,12 @@ TEST_F(TestForDeathTest, AcceptsAnythingConvertibleToRE) { # endif // GTEST_HAS_GLOBAL_STRING +# if !GTEST_USES_PCRE + const ::std::string regex_std_str(regex_c_str); EXPECT_DEATH(GlobalFunction(), regex_std_str); + +# endif // !GTEST_USES_PCRE } // Tests that a non-void function can be used in a death test.