Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
5c0ef1cb
Commit
5c0ef1cb
authored
Jul 02, 2020
by
Jun Jie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test failing when simple regex is used
Test MatcherDeathTest.DoesNotBreakBareRegexMatching fails when googletest uses simple regex instead of posix regex. This partially fixes #2687
parent
aee0f9d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
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 @
5c0ef1cb
...
@@ -1376,7 +1376,11 @@ void DieWithMessage(const char* message) {
...
@@ -1376,7 +1376,11 @@ void DieWithMessage(const char* message) {
TEST
(
MatcherDeathTest
,
DoesNotBreakBareRegexMatching
)
{
TEST
(
MatcherDeathTest
,
DoesNotBreakBareRegexMatching
)
{
// googletest tests this, of course; here we ensure that including googlemock
// googletest tests this, of course; here we ensure that including googlemock
// has not broken it.
// has not broken it.
#if GTEST_USES_POSIX_RE
EXPECT_DEATH
(
DieWithMessage
(
"O, I die, Horatio."
),
"I d[aeiou]e"
);
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
)
{
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