154#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
155 do { \
156 class GTestExpectFatalFailureHelper {\
157 public:\
158 static void Execute() { statement; }\
159 };\
160 ::testing::TestPartResultArray gtest_failures;\
161 ::testing::internal::SingleFailureChecker gtest_checker(\
162 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
163 {\
164 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
165 ::testing::ScopedFakeTestPartResultReporter:: \
166 INTERCEPT_ALL_THREADS, >est_failures);\
167 GTestExpectFatalFailureHelper::Execute();\
168 }\
169 } while (::testing::internal::AlwaysFalse())