Skip to content
Snippets Groups Projects
Commit e61125f0 authored by Mark Barolak's avatar Mark Barolak
Browse files

Merge pull request #2920 from ongjunjie:fix-death-test-regex

PiperOrigin-RevId: 324014547
parents 68ca04c2 5c0ef1cb
No related branches found
No related tags found
No related merge requests found
......@@ -1376,7 +1376,11 @@ void DieWithMessage(const char* message) {
TEST(MatcherDeathTest, DoesNotBreakBareRegexMatching) {
// googletest tests this, of course; here we ensure that including googlemock
// has not broken it.
#if GTEST_USES_POSIX_RE
EXPECT_DEATH(DieWithMessage("O, I die, Horatio."), "I d[aeiou]e");
#else
EXPECT_DEATH(DieWithMessage("O, I die, Horatio."), "I di?e");
#endif
}
TEST(MatcherDeathTest, MonomorphicMatcherMatches) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment