Lines Matching refs:statement
99 // Asserts that a given statement causes the program to exit, with an
102 #define ASSERT_EXIT(statement, predicate, regex) \
103 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_FATAL_FAILURE)
107 #define EXPECT_EXIT(statement, predicate, regex) \
108 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_NONFATAL_FAILURE)
110 // Asserts that a given statement causes the program to exit, either by
113 #define ASSERT_DEATH(statement, regex) \
114 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
118 #define EXPECT_DEATH(statement, regex) \
119 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
180 // // Side-effects here will have an effect after this statement in
187 #define EXPECT_DEBUG_DEATH(statement, regex) \
188 do { statement; } while (false)
190 #define ASSERT_DEBUG_DEATH(statement, regex) \
191 do { statement; } while (false)
195 #define EXPECT_DEBUG_DEATH(statement, regex) \
196 EXPECT_DEATH(statement, regex)
198 #define ASSERT_DEBUG_DEATH(statement, regex) \
199 ASSERT_DEATH(statement, regex)