Add lit-style tests for the Fuzzer library
[oota-llvm.git] / lib / Fuzzer / FuzzerLoop.cpp
index 9ad2bd729aa3dbea276edf169bb8e1e66d1fc4cc..b0bfce73ffd0fe47c5d7dff9b4133f936da798fc 100644 (file)
@@ -41,12 +41,12 @@ void Fuzzer::AlarmCallback() {
       duration_cast<seconds>(system_clock::now() - UnitStartTime).count();
   std::cerr << "ALARM: working on the last Unit for " << Seconds << " seconds"
             << std::endl;
-  if (Seconds > 60) {
+  if (Seconds >= 3) {
     Print(CurrentUnit, "\n");
     PrintASCII(CurrentUnit, "\n");
     WriteToCrash(CurrentUnit, "timeout-");
   }
-  abort();
+  exit(1);
 }
 
 void Fuzzer::ShuffleAndMinimize() {