[llvm] r272998 - [libFuzzer] make the single-run output more reliable
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 06:07:06 PDT 2016
Author: kcc
Date: Fri Jun 17 08:07:06 2016
New Revision: 272998
URL: http://llvm.org/viewvc/llvm-project?rev=272998&view=rev
Log:
[libFuzzer] make the single-run output more reliable
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=272998&r1=272997&r2=272998&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp Fri Jun 17 08:07:06 2016
@@ -374,12 +374,12 @@ int FuzzerDriver(int *argc, char ***argv
Inputs->size(), Runs);
for (auto &Path : *Inputs) {
auto StartTime = system_clock::now();
- Printf("%s ... ", Path.c_str());
+ Printf("Running: %s\n", Path.c_str());
for (int Iter = 0; Iter < Runs; Iter++)
RunOneTest(&F, Path.c_str());
auto StopTime = system_clock::now();
auto MS = duration_cast<milliseconds>(StopTime - StartTime).count();
- Printf("%zd ms\n", (long)MS);
+ Printf("Executed %s in %zd ms\n", Path.c_str(), (long)MS);
}
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=272998&r1=272997&r2=272998&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/fuzzer-singleinputs.test (original)
+++ llvm/trunk/lib/Fuzzer/test/fuzzer-singleinputs.test Fri Jun 17 08:07:06 2016
@@ -8,6 +8,6 @@ RUN: echo bbb > %tmp/SINGLE_INPUTS/bbb
RUN: LLVMFuzzer-SimpleTest %tmp/SINGLE_INPUTS/aaa %tmp/SINGLE_INPUTS/bbb 2>&1 | FileCheck %s --check-prefix=SINGLE_INPUTS
RUN: rm -rf %tmp/SINGLE_INPUTS
SINGLE_INPUTS: LLVMFuzzer-SimpleTest: Running 2 inputs 1 time(s) each.
-SINGLE_INPUTS: aaa ...
-SINGLE_INPUTS: bbb ...
+SINGLE_INPUTS: aaa in
+SINGLE_INPUTS: bbb in
More information about the llvm-commits
mailing list