1 RUN: %cpp_compiler %S/TimeoutTest.cpp -o %t-TimeoutTest
2 RUN: %cpp_compiler %S/TimeoutEmptyTest.cpp -o %t-TimeoutEmptyTest
3 RUN: not %run %t-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 %run %t-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: %run %t-TimeoutTest -timeout=1 -timeout_exitcode=0
18 RUN: not %run %t-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