Merge "Fix the way to find negative filter pattern."

This commit is contained in:
Yabin Cui 2016-12-10 03:49:16 +00:00 committed by Gerrit Code Review
commit 858ec7abec

View file

@ -1032,7 +1032,7 @@ static bool PickOptions(std::vector<char*>& args, IsolationTestOptions& options)
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*";