diff options
| author | Kostya Serebryany <kcc@google.com> | 2016-08-15 19:44:04 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2016-08-15 19:44:04 +0000 |
| commit | bdb220c7a0a6183d101d569e944ddc131e91e8ef (patch) | |
| tree | 174f3496807226528dbd5b1989b4e2c0440428cc /llvm | |
| parent | d9ce2917390f3b9c28a6ee57536193cdf47d4db9 (diff) | |
| download | bcm5719-llvm-bdb220c7a0a6183d101d569e944ddc131e91e8ef.tar.gz bcm5719-llvm-bdb220c7a0a6183d101d569e944ddc131e91e8ef.zip | |
[libFuzzer] print a verbose message after executing inputs in non-fuzzing mode
llvm-svn: 278724
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerDriver.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Fuzzer/test/fuzzer-singleinputs.test | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerDriver.cpp b/llvm/lib/Fuzzer/FuzzerDriver.cpp index f520a5cfdc4..a6db9fa338b 100644 --- a/llvm/lib/Fuzzer/FuzzerDriver.cpp +++ b/llvm/lib/Fuzzer/FuzzerDriver.cpp @@ -382,6 +382,10 @@ int FuzzerDriver(int *argc, char ***argv, UserCallback Callback) { auto MS = duration_cast<milliseconds>(StopTime - StartTime).count(); Printf("Executed %s in %zd ms\n", Path.c_str(), (long)MS); } + Printf("***\n" + "*** NOTE: fuzzing was not performed, you have only\n" + "*** executed the target code on a fixed set of inputs.\n" + "***\n"); F.PrintFinalStats(); exit(0); } diff --git a/llvm/lib/Fuzzer/test/fuzzer-singleinputs.test b/llvm/lib/Fuzzer/test/fuzzer-singleinputs.test index a4faf2cea50..3e34273b064 100644 --- a/llvm/lib/Fuzzer/test/fuzzer-singleinputs.test +++ b/llvm/lib/Fuzzer/test/fuzzer-singleinputs.test @@ -10,4 +10,6 @@ RUN: rm -rf %tmp/SINGLE_INPUTS SINGLE_INPUTS: LLVMFuzzer-SimpleTest: Running 2 inputs 1 time(s) each. SINGLE_INPUTS: aaa in SINGLE_INPUTS: bbb in +SINGLE_INPUTS: NOTE: fuzzing was not performed, you have only +SINGLE_INPUTS: executed the target code on a fixed set of inputs. |

