Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
1e4d3100
Commit
1e4d3100
authored
Jul 14, 2015
by
kosak
Browse files
Control death test with an #ifdef guard.
parent
156d1b51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test/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) {
# endif // GTEST_HAS_GLOBAL_STRING
# if !GTEST_USES_PCRE
const
::
std
::
string
regex_std_str
(
regex_c_str
);
EXPECT_DEATH
(
GlobalFunction
(),
regex_std_str
);
# endif // !GTEST_USES_PCRE
}
// 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