OSDN Git Service

bf0e62a305bb5c254c887c056b88234a92185697
[android-x86/external-llvm.git] / lib / Fuzzer / test / fuzzer-timeout.test
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
7 TimeoutTest: #0
8 TimeoutTest: #1
9 TimeoutTest: #2
10 TimeoutTest: SUMMARY: libFuzzer: timeout
11
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-
15
16 RUN: %t-LLVMFuzzer-TimeoutTest -timeout=1 -timeout_exitcode=0
17
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