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