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
87494afc
Commit
87494afc
authored
Aug 22, 2018
by
misterg
Committed by
Gennadiy Civil
Aug 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Remove unneeded check for NULL. Note: this started as OSS PR
https://github.com/google/googletest/pull/967
but changed PiperOrigin-RevId: 209819732
parent
9dae3001
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gtest.cc
googletest/src/gtest.cc
+7
-7
No files found.
googletest/src/gtest.cc
View file @
87494afc
...
...
@@ -2679,18 +2679,18 @@ void TestInfo::Run() {
factory_
,
&
internal
::
TestFactoryBase
::
CreateTest
,
"the test fixture's constructor"
);
// Runs the test
only if the test object was created and its
//
constructor didn't generate a fatal failure.
if
(
(
test
!=
NULL
)
&&
!
Test
::
HasFatalFailure
())
{
// Runs the test
if the constructor didn't generate a fatal failure.
//
Note that the object will not be null
if
(
!
Test
::
HasFatalFailure
())
{
// This doesn't throw as all user code that can throw are wrapped into
// exception handling code.
test
->
Run
();
}
// Deletes the test object.
impl
->
os_stack_trace_getter
()
->
UponLeavingGTest
();
internal
::
HandleExceptionsInMethodIfSupported
(
test
,
&
Test
::
DeleteSelf_
,
"the test fixture's destructor"
);
// Deletes the test object.
impl
->
os_stack_trace_getter
()
->
UponLeavingGTest
();
internal
::
HandleExceptionsInMethodIfSupported
(
test
,
&
Test
::
DeleteSelf_
,
"the test fixture's destructor"
);
result_
.
set_elapsed_time
(
internal
::
GetTimeInMillis
()
-
start
);
...
...
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