mirror of
https://github.com/google/googletest.git
synced 2025-01-15 09:15:48 +08:00
Merge pull request #1779 from google/9A681768AABE08D1EFA5CA77528236A4
Googletest export
This commit is contained in:
commit
7f11b9ffb5
@ -2679,9 +2679,9 @@ void TestInfo::Run() {
|
|||||||
factory_, &internal::TestFactoryBase::CreateTest,
|
factory_, &internal::TestFactoryBase::CreateTest,
|
||||||
"the test fixture's constructor");
|
"the test fixture's constructor");
|
||||||
|
|
||||||
// Runs the test only if the test object was created and its
|
// Runs the test if the constructor didn't generate a fatal failure.
|
||||||
// constructor didn't generate a fatal failure.
|
// Note that the object will not be null
|
||||||
if ((test != NULL) && !Test::HasFatalFailure()) {
|
if (!Test::HasFatalFailure()) {
|
||||||
// This doesn't throw as all user code that can throw are wrapped into
|
// This doesn't throw as all user code that can throw are wrapped into
|
||||||
// exception handling code.
|
// exception handling code.
|
||||||
test->Run();
|
test->Run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user