Control death test with an #ifdef guard.

This commit is contained in:
kosak 2015-07-14 20:26:09 +00:00
parent 156d1b513b
commit 1e4d31008f

View File

@ -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.