Omit comment when reading --gtest_list_tests option's output.
Gtest add comments when listing typed tests. And we should omit them. Bug: 23040880 Change-Id: If6034af301337fc06eeab294d2dbe5317a6b7f91
This commit is contained in:
parent
e80369ab0c
commit
bf830ade7f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue