Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
205df105
Unverified
Commit
205df105
authored
Aug 24, 2018
by
Gennadiy Civil
Committed by
GitHub
Aug 24, 2018
Browse files
Merge branch 'master' into issue_1735
parents
6de39826
7f11b9ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
googletest/src/gtest.cc
googletest/src/gtest.cc
+7
-7
No files found.
googletest/src/gtest.cc
View file @
205df105
...
...
@@ -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 cre
ate
d
a
nd its
//
constructor didn't generate a fatal failure.
if
(
(
test
!=
NULL
)
&&
!
Test
::
HasFatalFailure
())
{
// Runs the test if the
constructor didn't gener
ate 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