summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/gtest-port_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gtest-port_test.cc b/test/gtest-port_test.cc
index 3725860..b6e53ba 100644
--- a/test/gtest-port_test.cc
+++ b/test/gtest-port_test.cc
@@ -149,8 +149,10 @@ TEST(GtestCheckDeathTest, DiesWithCorrectOutputOnFailure) {
const char regex[] =
#ifdef _MSC_VER
"gtest-port_test\\.cc\\(\\d+\\):"
-#else
+#elif GTEST_USES_POSIX_RE
"gtest-port_test\\.cc:[0-9]+"
+#else
+ "gtest-port_test\\.cc:\\d+"
#endif // _MSC_VER
".*a_false_condition.*Extra info.*";