* commit 'd13e626817cfd552bf082fb35019177274147449': Fix parse of gtest_filter in bionic gtest main.
This commit is contained in:
		@@ -770,9 +770,14 @@ static bool PickOptions(std::vector<char*>& args, IsolationTestOptions& options)
 | 
				
			|||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    if (gtest_filter_str == "") {
 | 
					    if (gtest_filter_str == "") {
 | 
				
			||||||
      gtest_filter_str = "--gtest_filter=-bionic_selftest*";
 | 
					      gtest_filter_str = "--gtest_filter=-bionic_selftest*";
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      // Find if '-' for NEGATIVE_PATTERNS exists.
 | 
				
			||||||
 | 
					      if (gtest_filter_str.find(":-") != std::string::npos) {
 | 
				
			||||||
 | 
					        gtest_filter_str += ":bionic_selftest*";
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        gtest_filter_str += ":-bionic_selftest*";
 | 
					        gtest_filter_str += ":-bionic_selftest*";
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    args.push_back(strdup(gtest_filter_str.c_str()));
 | 
					    args.push_back(strdup(gtest_filter_str.c_str()));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user