summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerLoop.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-01-28 22:49:25 +0000
committerKostya Serebryany <kcc@google.com>2015-01-28 22:49:25 +0000
commita8fbcf0c1f9f3cff3a3deafe4bbb70419a822185 (patch)
treea51343059ed76d89cd7811ce4e420b5d4607af3a /llvm/lib/Fuzzer/FuzzerLoop.cpp
parentfc4fd529c8309265e324c0e292c04cc91c4c736d (diff)
downloadbcm5719-llvm-a8fbcf0c1f9f3cff3a3deafe4bbb70419a822185.tar.gz
bcm5719-llvm-a8fbcf0c1f9f3cff3a3deafe4bbb70419a822185.zip
Add lit-style tests for the Fuzzer library
Summary: Add test targets and the lit-style runner. Test Plan: Run the tests on bot. Reviewers: samsonov Reviewed By: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7217 llvm-svn: 227389
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerLoop.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerLoop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp
index 9ad2bd729aa..b0bfce73ffd 100644
--- a/llvm/lib/Fuzzer/FuzzerLoop.cpp
+++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp
@@ -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() {
OpenPOWER on IntegriCloud