[lib/Fuzzer] make the fuzzing timeout 1200 seconds by default (was: infinity)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kostya Serebryany
2015-05-26 20:57:47 +00:00
parent 8a7b4ea2ad
commit ea8a3963b4
3 changed files with 4 additions and 2 deletions

View File

@@ -66,6 +66,8 @@ void Fuzzer::AlarmCallback() {
Printf("AlarmCallback %zd\n", Seconds);
if (Seconds >= (size_t)Options.UnitTimeoutSec) {
Printf("ALARM: working on the last Unit for %zd seconds\n", Seconds);
Printf(" and the timeout value is %d (use -timeout=N to change)\n",
Options.UnitTimeoutSec);
Print(CurrentUnit, "\n");
PrintUnitInASCIIOrTokens(CurrentUnit, "\n");
WriteToCrash(CurrentUnit, "timeout-");