Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
e61125f0
Commit
e61125f0
authored
Jul 31, 2020
by
Mark Barolak
Browse files
Merge pull request #2920 from ongjunjie:fix-death-test-regex
PiperOrigin-RevId: 324014547
parents
68ca04c2
5c0ef1cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
googletest/test/googletest-death-test-test.cc
googletest/test/googletest-death-test-test.cc
+4
-0
No files found.
googletest/test/googletest-death-test-test.cc
View file @
e61125f0
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment