[llvm] r278724 - [libFuzzer] print a verbose message after executing inputs in non-fuzzing mode
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 15 12:44:05 PDT 2016
Author: kcc
Date: Mon Aug 15 14:44:04 2016
New Revision: 278724
URL: http://llvm.org/viewvc/llvm-project?rev=278724&view=rev
Log:
[libFuzzer] print a verbose message after executing inputs in non-fuzzing mode
Modified:
llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp
llvm/trunk/lib/Fuzzer/test/fuzzer-singleinputs.test
Modified: llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp?rev=278724&r1=278723&r2=278724&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp Mon Aug 15 14:44:04 2016
@@ -382,6 +382,10 @@ int FuzzerDriver(int *argc, char ***argv
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);
}
Modified: llvm/trunk/lib/Fuzzer/test/fuzzer-singleinputs.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/fuzzer-singleinputs.test?rev=278724&r1=278723&r2=278724&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/fuzzer-singleinputs.test (original)
+++ llvm/trunk/lib/Fuzzer/test/fuzzer-singleinputs.test Mon Aug 15 14:44:04 2016
@@ -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.
More information about the llvm-commits
mailing list