|
|
@ -1500,12 +1500,13 @@ class NeverThrown { |
|
|
|
#define GTEST_TEST_NO_FATAL_FAILURE_(statement, fail) \ |
|
|
|
#define GTEST_TEST_NO_FATAL_FAILURE_(statement, fail) \ |
|
|
|
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
|
|
|
|
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
|
|
|
|
if (::testing::internal::AlwaysTrue()) { \
|
|
|
|
if (::testing::internal::AlwaysTrue()) { \
|
|
|
|
::testing::internal::HasNewFatalFailureHelper gtest_fatal_failure_checker; \
|
|
|
|
const ::testing::internal::HasNewFatalFailureHelper \
|
|
|
|
|
|
|
|
gtest_fatal_failure_checker; \
|
|
|
|
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
|
|
|
|
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
|
|
|
|
if (gtest_fatal_failure_checker.has_new_fatal_failure()) { \
|
|
|
|
if (gtest_fatal_failure_checker.has_new_fatal_failure()) { \
|
|
|
|
goto GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__); \
|
|
|
|
goto GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
} else \
|
|
|
|
} else /* NOLINT */ \
|
|
|
|
GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__) \
|
|
|
|
GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__) \
|
|
|
|
: fail("Expected: " #statement \
|
|
|
|
: fail("Expected: " #statement \
|
|
|
|
" doesn't generate new fatal " \
|
|
|
|
" doesn't generate new fatal " \
|
|
|
|