summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerLoop.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-05-26 20:57:47 +0000
committerKostya Serebryany <kcc@google.com>2015-05-26 20:57:47 +0000
commit316b571007cdf4b377af568c5a7d5eb05b2b9171 (patch)
treecc90fdb2b4856c793d955e6dfd5d97de7cbfbd85 /llvm/lib/Fuzzer/FuzzerLoop.cpp
parentc7818fbe98eb61a0120eaa4a5f353ed18dfea036 (diff)
downloadbcm5719-llvm-316b571007cdf4b377af568c5a7d5eb05b2b9171.tar.gz
bcm5719-llvm-316b571007cdf4b377af568c5a7d5eb05b2b9171.zip
[lib/Fuzzer] make the fuzzing timeout 1200 seconds by default (was: infinity)
llvm-svn: 238251
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerLoop.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerLoop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp
index 1b6a82fe4a8..4c8b247a72e 100644
--- a/llvm/lib/Fuzzer/FuzzerLoop.cpp
+++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp
@@ -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-");
OpenPOWER on IntegriCloud