mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227389 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user