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
d84f58ab
Commit
d84f58ab
authored
Feb 12, 2018
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merging, coniniue
parent
575c0812
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
gtest-death-test.cc
googletest/src/gtest-death-test.cc
+0
-2
gtest-death-test_test.cc
googletest/test/gtest-death-test_test.cc
+5
-1
No files found.
googletest/src/gtest-death-test.cc
View file @
d84f58ab
...
@@ -983,7 +983,6 @@ static int ExecDeathTestChildMain(void* child_arg) {
...
@@ -983,7 +983,6 @@ static int ExecDeathTestChildMain(void* child_arg) {
}
}
# endif // !GTEST_OS_QNX
# endif // !GTEST_OS_QNX
# if GTEST_HAS_CLONE
// Two utility routines that together determine the direction the stack
// Two utility routines that together determine the direction the stack
// grows.
// grows.
// This could be accomplished more elegantly by a single recursive
// This could be accomplished more elegantly by a single recursive
...
@@ -1008,7 +1007,6 @@ static bool StackGrowsDown() {
...
@@ -1008,7 +1007,6 @@ static bool StackGrowsDown() {
StackLowerThanAddress
(
&
dummy
,
&
result
);
StackLowerThanAddress
(
&
dummy
,
&
result
);
return
result
;
return
result
;
}
}
# endif // GTEST_HAS_CLONE
// Spawns a child process with the same executable as the current process in
// Spawns a child process with the same executable as the current process in
// a thread-safe manner and instructs it to run the death test. The
// a thread-safe manner and instructs it to run the death test. The
...
...
googletest/test/gtest-death-test_test.cc
View file @
d84f58ab
...
@@ -617,7 +617,11 @@ TEST_F(TestForDeathTest, ReturnIsFailure) {
...
@@ -617,7 +617,11 @@ TEST_F(TestForDeathTest, ReturnIsFailure) {
TEST_F
(
TestForDeathTest
,
TestExpectDebugDeath
)
{
TEST_F
(
TestForDeathTest
,
TestExpectDebugDeath
)
{
int
sideeffect
=
0
;
int
sideeffect
=
0
;
EXPECT_DEBUG_DEATH
(
DieInDebugElse12
(
&
sideeffect
),
"death.*DieInDebugElse12"
)
// Put the regex in a local variable to make sure we don't get an "unused"
// warning in opt mode.
const
char
*
regex
=
"death.*DieInDebugElse12"
;
EXPECT_DEBUG_DEATH
(
DieInDebugElse12
(
&
sideeffect
),
regex
)
<<
"Must accept a streamed message"
;
<<
"Must accept a streamed message"
;
# ifdef NDEBUG
# ifdef NDEBUG
...
...
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