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
7f11b9ff
Unverified
Commit
7f11b9ff
authored
Aug 23, 2018
by
Gennadiy Civil
Committed by
GitHub
Aug 23, 2018
Browse files
Merge pull request #1779 from google/9A681768AABE08D1EFA5CA77528236A4
Googletest export
parents
1d9a1912
87494afc
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 @
7f11b9ff
...
...
@@ -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