Home | History | Annotate | Download | only in gtest

Lines Matching refs:statement

154 // Asserts that a given statement causes the program to exit, with an
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 # define EXPECT_EXIT(statement, predicate, regex) \
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
165 // Asserts that a given statement causes the program to exit, either by
168 # define ASSERT_DEATH(statement, regex) \
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 # define EXPECT_DEATH(statement, regex) \
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
240 // // Side-effects here will have an effect after this statement in
247 # define EXPECT_DEBUG_DEATH(statement, regex) \
248 do { statement; } while (::testing::internal::AlwaysFalse())
250 # define ASSERT_DEBUG_DEATH(statement, regex) \
251 do { statement; } while (::testing::internal::AlwaysFalse())
255 # define EXPECT_DEBUG_DEATH(statement, regex) \
256 EXPECT_DEATH(statement, regex)
258 # define ASSERT_DEBUG_DEATH(statement, regex) \
259 ASSERT_DEATH(statement, regex)
264 // EXPECT_DEATH_IF_SUPPORTED(statement, regex) and
265 // ASSERT_DEATH_IF_SUPPORTED(statement, regex) expand to real death tests if
270 # define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \
271 EXPECT_DEATH(statement, regex)
272 # define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \
273 ASSERT_DEATH(statement, regex)
275 # define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \
276 GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, )
277 # define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \
278 GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, return)