forked from OSchip/llvm-project
[libFuzzer] don't print help for internal flags
llvm-svn: 281124
This commit is contained in:
parent
b991cc1f0e
commit
4529960a3b
|
@ -88,6 +88,7 @@ static void PrintHelp() {
|
|||
|
||||
for (size_t F = 0; F < kNumFlags; F++) {
|
||||
const auto &D = FlagDescriptions[F];
|
||||
if (strstr(D.Description, "internal flag") == D.Description) continue;
|
||||
Printf(" %s", D.Name);
|
||||
for (size_t i = 0, n = MaxFlagLen - strlen(D.Name); i < n; i++)
|
||||
Printf(" ");
|
||||
|
|
|
@ -6,3 +6,5 @@ RUN: LLVMFuzzer-SimpleTest -runs=10 --max_len=100 2>&1 | FileCheck %s --check-pr
|
|||
DASH_DASH: WARNING: did you mean '-max_len=100' (single dash)?
|
||||
DASH_DASH: INFO: A corpus is not provided, starting from an empty corpus
|
||||
|
||||
RUN: LLVMFuzzer-SimpleTest -help=1 2>&1 | FileCheck %s --check-prefix=NO_INTERNAL
|
||||
NO_INTERNAL-NOT: internal flag
|
||||
|
|
Loading…
Reference in New Issue