[fuzzer]: fix exit code, add more diagnostics
authorKostya Serebryany <kcc@google.com>
Wed, 4 Feb 2015 01:22:57 +0000 (01:22 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 4 Feb 2015 01:22:57 +0000 (01:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228103 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerLoop.cpp
lib/Fuzzer/FuzzerMain.cpp

index 44abeca..88ae6ca 100644 (file)
@@ -157,6 +157,7 @@ size_t Fuzzer::MutateAndTestOne(Unit *U) {
         std::cerr << "#" << TotalNumberOfRuns
                   << "\tNEW: " << NewCoverage
                   << " L: " << U->size()
+                  << " S: " << Corpus.size()
                   << "\t";
         if (U->size() < 30) {
           PrintASCII(*U);
index e0720b4..3370a80 100644 (file)
@@ -180,5 +180,5 @@ int main(int argc, char **argv) {
   F.Loop(Flags.iterations < 0 ? INT_MAX : Flags.iterations);
   if (Flags.verbosity)
     std::cerr << "Done\n";
-  return 1;
+  return 0;
 }