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
40604f89
Commit
40604f89
authored
Mar 08, 2010
by
vladlosev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes an 'unreachable code' warning by MSVC on certain opt settings in gtest-death-test_test.cc.
parent
79e11d7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
gtest-death-test_test.cc
test/gtest-death-test_test.cc
+6
-1
No files found.
test/gtest-death-test_test.cc
View file @
40604f89
...
@@ -110,7 +110,12 @@ void DieInside(const char* function) {
...
@@ -110,7 +110,12 @@ void DieInside(const char* function) {
// system call and thus safer in the presence of threads. exit()
// system call and thus safer in the presence of threads. exit()
// will invoke user-defined exit-hooks, which may do dangerous
// will invoke user-defined exit-hooks, which may do dangerous
// things that conflict with death tests.
// things that conflict with death tests.
_exit
(
1
);
//
// Some compilers can recognize that _exit() never returns and issue the
// 'unreachable code' warning for code following this function, unless
// fooled by a fake condition.
if
(
AlwaysTrue
())
_exit
(
1
);
}
}
// Tests that death tests work.
// Tests that death tests work.
...
...
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