Home | History | Annotate | Download | only in gtest

Lines Matching refs:regex

91 //   On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
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_)
167 // signal, and emitting error output that matches regex.
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)
247 # define EXPECT_DEBUG_DEATH(statement, regex) \
250 # define ASSERT_DEBUG_DEATH(statement, regex) \
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)