Lines Matching refs:regex

102 //   On POSIX-compliant systems (*nix), we use the <regex.h> library,
103 // which uses the POSIX extended regex syntax.
105 // On other platforms (e.g. Windows), we only support a simple regex
109 // or POSIX extended regex syntax. For example, we don't support
114 // subset of both PCRE and POSIX extended regex, so it's easy to
141 // If you accidentally use PCRE or POSIX extended regex features
147 // as a compiled regex library, but should perform well enough for a
167 // that matches regex.
168 # define ASSERT_EXIT(statement, predicate, regex) \
169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
173 # define EXPECT_EXIT(statement, predicate, regex) \
174 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
178 // signal, and emitting error output that matches regex.
179 # define ASSERT_DEATH(statement, regex) \
180 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
184 # define EXPECT_DEATH(statement, regex) \
185 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
258 # define EXPECT_DEBUG_DEATH(statement, regex) \
259 GTEST_EXECUTE_STATEMENT_(statement, regex)
261 # define ASSERT_DEBUG_DEATH(statement, regex) \
262 GTEST_EXECUTE_STATEMENT_(statement, regex)
266 # define EXPECT_DEBUG_DEATH(statement, regex) \
267 EXPECT_DEATH(statement, regex)
269 # define ASSERT_DEBUG_DEATH(statement, regex) \
270 ASSERT_DEATH(statement, regex)
275 // EXPECT_DEATH_IF_SUPPORTED(statement, regex) and
276 // ASSERT_DEATH_IF_SUPPORTED(statement, regex) expand to real death tests if
281 # define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \
282 EXPECT_DEATH(statement, regex)
283 # define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \
284 ASSERT_DEATH(statement, regex)
286 # define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \
287 GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, )
288 # define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \
289 GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, return)