diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 3f807913..8a380180 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -885,7 +885,11 @@ class PositiveAndNegativeUnitTestFilter { // and does not match the negative filter. bool MatchesTest(const std::string& test_suite_name, const std::string& test_name) const { +#ifdef GTEST_HAS_ABSL + return MatchesName(absl::StrCat(test_suite_name, ".", test_name)); +#else return MatchesName(test_suite_name + "." + test_name); +#endif } // Returns true if and only if name matches the positive filter and does not