fix GTEST_REMOVE_LEGACY_TEST_CASEAPI_ typo
This commit is contained in:
parent
a781fe29bc
commit
317ec2f296
@ -3007,9 +3007,9 @@ void TestSuite::Run() {
|
|||||||
// Call both legacy and the new API
|
// Call both legacy and the new API
|
||||||
repeater->OnTestSuiteStart(*this);
|
repeater->OnTestSuiteStart(*this);
|
||||||
// Legacy API is deprecated but still available
|
// Legacy API is deprecated but still available
|
||||||
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
repeater->OnTestCaseStart(*this);
|
repeater->OnTestCaseStart(*this);
|
||||||
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
|
|
||||||
impl->os_stack_trace_getter()->UponLeavingGTest();
|
impl->os_stack_trace_getter()->UponLeavingGTest();
|
||||||
internal::HandleExceptionsInMethodIfSupported(
|
internal::HandleExceptionsInMethodIfSupported(
|
||||||
@ -3034,9 +3034,9 @@ void TestSuite::Run() {
|
|||||||
// Call both legacy and the new API
|
// Call both legacy and the new API
|
||||||
repeater->OnTestSuiteEnd(*this);
|
repeater->OnTestSuiteEnd(*this);
|
||||||
// Legacy API is deprecated but still available
|
// Legacy API is deprecated but still available
|
||||||
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
repeater->OnTestCaseEnd(*this);
|
repeater->OnTestCaseEnd(*this);
|
||||||
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
|
|
||||||
impl->set_current_test_suite(nullptr);
|
impl->set_current_test_suite(nullptr);
|
||||||
}
|
}
|
||||||
@ -3053,9 +3053,9 @@ void TestSuite::Skip() {
|
|||||||
// Call both legacy and the new API
|
// Call both legacy and the new API
|
||||||
repeater->OnTestSuiteStart(*this);
|
repeater->OnTestSuiteStart(*this);
|
||||||
// Legacy API is deprecated but still available
|
// Legacy API is deprecated but still available
|
||||||
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
repeater->OnTestCaseStart(*this);
|
repeater->OnTestCaseStart(*this);
|
||||||
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
|
|
||||||
for (int i = 0; i < total_test_count(); i++) {
|
for (int i = 0; i < total_test_count(); i++) {
|
||||||
GetMutableTestInfo(i)->Skip();
|
GetMutableTestInfo(i)->Skip();
|
||||||
@ -3064,9 +3064,9 @@ void TestSuite::Skip() {
|
|||||||
// Call both legacy and the new API
|
// Call both legacy and the new API
|
||||||
repeater->OnTestSuiteEnd(*this);
|
repeater->OnTestSuiteEnd(*this);
|
||||||
// Legacy API is deprecated but still available
|
// Legacy API is deprecated but still available
|
||||||
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
repeater->OnTestCaseEnd(*this);
|
repeater->OnTestCaseEnd(*this);
|
||||||
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI
|
#endif // GTEST_REMOVE_LEGACY_TEST_CASEAPI_
|
||||||
|
|
||||||
impl->set_current_test_suite(nullptr);
|
impl->set_current_test_suite(nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user