[libFuzzer] print a verbose message after executing inputs in non-fuzzing mode
authorKostya Serebryany <kcc@google.com>
Mon, 15 Aug 2016 19:44:04 +0000 (19:44 +0000)
committerKostya Serebryany <kcc@google.com>
Mon, 15 Aug 2016 19:44:04 +0000 (19:44 +0000)
llvm-svn: 278724

llvm/lib/Fuzzer/FuzzerDriver.cpp
llvm/lib/Fuzzer/test/fuzzer-singleinputs.test

index f520a5c..a6db9fa 100644 (file)
@@ -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);
   }
index a4faf2c..3e34273 100644 (file)
@@ -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.