am ff4afc13: Merge "Omit comment when reading --gtest_list_tests option\'s output."

* commit 'ff4afc136ef5d00d33a611e7bc1950249db9fbcf':
  Omit comment when reading --gtest_list_tests option's output.
This commit is contained in:
Yabin Cui 2015-08-10 22:22:04 +00:00 committed by Android Git Automerger
commit c23143a5fd

View File

@ -256,7 +256,7 @@ static bool EnumerateTests(int argc, char** argv, std::vector<TestCase>& testcas
while (*p != '\0' && isspace(*p)) {
++p;
}
if (*p != '\0') {
if (*p != '\0' && *p != '#') {
// This is not we want, gtest must meet with some error when parsing the arguments.
fprintf(stderr, "argument error, check with --help\n");
return false;