diff --git a/test/gtest/gmock-gtest-all.cc b/test/gtest/gmock-gtest-all.cc index b67316c3..439ebc62 100644 --- a/test/gtest/gmock-gtest-all.cc +++ b/test/gtest/gmock-gtest-all.cc @@ -2202,7 +2202,7 @@ bool UnitTestOptions::MatchesFilter(const std::string& name_str, // Check if this pattern matches name_str. if (PatternMatchesString(name_str, pattern, pattern_end)) { - return true; + break; } // Give up on this pattern. However, if we found a pattern separator (:),