From f487e9510be94c70f08485887a16b48d756bf38f Mon Sep 17 00:00:00 2001 From: kosak Date: Mon, 27 Jul 2015 21:18:24 +0000 Subject: Inject the name of the Init function using a macro. --- test/gtest-port_test.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/gtest-port_test.cc b/test/gtest-port_test.cc index 14418804..d17bad00 100644 --- a/test/gtest-port_test.cc +++ b/test/gtest-port_test.cc @@ -382,15 +382,17 @@ TEST(GtestCheckDeathTest, LivesSilentlyOnSuccess) { // the platform. The test will produce compiler errors in case of failure. // For simplicity, we only cover the most important platforms here. TEST(RegexEngineSelectionTest, SelectsCorrectRegexEngine) { -#if GTEST_HAS_POSIX_RE +#if !GTEST_USES_PCRE +# if GTEST_HAS_POSIX_RE EXPECT_TRUE(GTEST_USES_POSIX_RE); -#else +# else EXPECT_TRUE(GTEST_USES_SIMPLE_RE); -#endif +# endif +#endif // !GTEST_USES_PCRE } #if GTEST_USES_POSIX_RE -- cgit v1.2.3