Merge "Fix the way to find negative filter pattern."
diff --git a/tests/gtest_main.cpp b/tests/gtest_main.cpp
index b12c28f..6018ef5 100644
--- a/tests/gtest_main.cpp
+++ b/tests/gtest_main.cpp
@@ -1032,7 +1032,7 @@
       gtest_filter_str = "--gtest_filter=-bionic_selftest*";
     } else {
       // Find if '-' for NEGATIVE_PATTERNS exists.
-      if (gtest_filter_str.find(":-") != std::string::npos) {
+      if (gtest_filter_str.find("-") != std::string::npos) {
         gtest_filter_str += ":bionic_selftest*";
       } else {
         gtest_filter_str += ":-bionic_selftest*";