Merge "Omit comment when reading --gtest_list_tests option's output."
This commit is contained in:
commit
ff4afc136e
@ -256,7 +256,7 @@ static bool EnumerateTests(int argc, char** argv, std::vector<TestCase>& testcas
|
|||||||
while (*p != '\0' && isspace(*p)) {
|
while (*p != '\0' && isspace(*p)) {
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
if (*p != '\0') {
|
if (*p != '\0' && *p != '#') {
|
||||||
// This is not we want, gtest must meet with some error when parsing the arguments.
|
// This is not we want, gtest must meet with some error when parsing the arguments.
|
||||||
fprintf(stderr, "argument error, check with --help\n");
|
fprintf(stderr, "argument error, check with --help\n");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user