From dc59d3df3f6d0eeee19c5baa80b160a9b96fe0d0 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 21 Aug 2022 08:16:11 -0700 Subject: [PATCH] Fix a warning in gtest --- test/gtest/gmock-gtest-all.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (:),