Skip to content

Commit

Permalink
Merge pull request #2920 from ongjunjie:fix-death-test-regex
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 324014547
  • Loading branch information
mbxx committed Jul 31, 2020
2 parents 68ca04c + 5c0ef1c commit e61125f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions googletest/test/googletest-death-test-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e61125f

Please sign in to comment.