1 RUN: %cpp_compiler %S/TimeoutTest.cpp -o %t-LLVMFuzzer-TimeoutTest
2 RUN: %cpp_compiler %S/TimeoutEmptyTest.cpp -o %t-LLVMFuzzer-TimeoutEmptyTest
3 RUN: not %t-LLVMFuzzer-TimeoutTest -timeout=1 2>&1 | FileCheck %s --check-prefix=TimeoutTest
4 TimeoutTest: ALARM: working on the last Unit for
5 TimeoutTest: Test unit written to ./timeout-
6 TimeoutTest: == ERROR: libFuzzer: timeout after
10 TimeoutTest: SUMMARY: libFuzzer: timeout
12 RUN: not %t-LLVMFuzzer-TimeoutTest -timeout=1 %S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInputTimeoutTest
13 SingleInputTimeoutTest: ALARM: working on the last Unit for {{[1-3]}} seconds
14 SingleInputTimeoutTest-NOT: Test unit written to ./timeout-
16 RUN: %t-LLVMFuzzer-TimeoutTest -timeout=1 -timeout_exitcode=0
18 RUN: not %t-LLVMFuzzer-TimeoutEmptyTest -timeout=1 2>&1 | FileCheck %s --check-prefix=TimeoutEmptyTest
19 TimeoutEmptyTest: ALARM: working on the last Unit for
20 TimeoutEmptyTest: == ERROR: libFuzzer: timeout after
21 TimeoutEmptyTest: SUMMARY: libFuzzer: timeout