commit | ff4afc136ef5d00d33a611e7bc1950249db9fbcf | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Aug 10 22:01:07 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Aug 10 22:01:07 2015 +0000 |
tree | f4308ed457988a5e530a2d4cfb1250afa063afd7 | |
parent | 182b91f62809b03870f561a88135f5453966fe41 [diff] | |
parent | bf830ade7f4d45ab884b8c56631db7d7b4b5c077 [diff] |
Merge "Omit comment when reading --gtest_list_tests option's output."
diff --git a/tests/gtest_main.cpp b/tests/gtest_main.cpp index 692b7e8..35211da 100644 --- a/tests/gtest_main.cpp +++ b/tests/gtest_main.cpp
@@ -256,7 +256,7 @@ 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;