diff --git a/tests/gtest_main.cpp b/tests/gtest_main.cpp index 692b7e883..35211da06 100644 --- a/tests/gtest_main.cpp +++ b/tests/gtest_main.cpp @@ -256,7 +256,7 @@ static bool EnumerateTests(int argc, char** argv, std::vector& 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;