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
1e4d3100
Commit
1e4d3100
authored
Jul 14, 2015
by
kosak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Control death test with an #ifdef guard.
parent
156d1b51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gtest-death-test_test.cc
test/gtest-death-test_test.cc
+4
-0
No files found.
test/gtest-death-test_test.cc
View file @
1e4d3100
...
@@ -510,8 +510,12 @@ TEST_F(TestForDeathTest, AcceptsAnythingConvertibleToRE) {
...
@@ -510,8 +510,12 @@ TEST_F(TestForDeathTest, AcceptsAnythingConvertibleToRE) {
# endif // GTEST_HAS_GLOBAL_STRING
# endif // GTEST_HAS_GLOBAL_STRING
# if !GTEST_USES_PCRE
const
::
std
::
string
regex_std_str
(
regex_c_str
);
const
::
std
::
string
regex_std_str
(
regex_c_str
);
EXPECT_DEATH
(
GlobalFunction
(),
regex_std_str
);
EXPECT_DEATH
(
GlobalFunction
(),
regex_std_str
);
# endif // !GTEST_USES_PCRE
}
}
// Tests that a non-void function can be used in a death test.
// Tests that a non-void function can be used in a death test.
...
...
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