diff options
author | Kostya Serebryany <kcc@google.com> | 2015-10-16 22:41:47 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-10-16 22:41:47 +0000 |
commit | b91c62b1f3aa7f6e5dba3a75d5c38604d701cd16 (patch) | |
tree | fd72fd900afe8b38bd24d2d7a1278efcba6bc894 /llvm/lib/Fuzzer/test | |
parent | 230c5c5b5241033bf8e786e80d3665b773dd4744 (diff) | |
download | bcm5719-llvm-b91c62b1f3aa7f6e5dba3a75d5c38604d701cd16.tar.gz bcm5719-llvm-b91c62b1f3aa7f6e5dba3a75d5c38604d701cd16.zip |
[libFuzzer] When -test_single_input crashes the test it is not necessary to write crash-file because input is already known to the user. Patch by Mike Aizatsky
llvm-svn: 250564
Diffstat (limited to 'llvm/lib/Fuzzer/test')
-rw-r--r-- | llvm/lib/Fuzzer/test/fuzzer.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/fuzzer.test b/llvm/lib/Fuzzer/test/fuzzer.test index f3794dc3d38..dccc5e48250 100644 --- a/llvm/lib/Fuzzer/test/fuzzer.test +++ b/llvm/lib/Fuzzer/test/fuzzer.test @@ -1,7 +1,8 @@ CHECK: BINGO RUN: LLVMFuzzer-SimpleTest 2>&1 | FileCheck %s -RUN: LLVMFuzzer-SimpleTest -test_single_input=%S/hi.txt 2>&1 | FileCheck %s +RUN: not LLVMFuzzer-NullDerefTest -test_single_input=%S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInput +SingleInput-NOT: Test unit written to ./crash- RUN: not LLVMFuzzer-InfiniteTest -timeout=2 2>&1 | FileCheck %s --check-prefix=InfiniteTest InfiniteTest: ALARM: working on the last Unit for @@ -14,6 +15,10 @@ RUN: not LLVMFuzzer-TimeoutTest -timeout=5 2>&1 | FileCheck %s --check-prefix=Ti TimeoutTest: ALARM: working on the last Unit for TimeoutTest: Test unit written to ./timeout- +RUN: not LLVMFuzzer-TimeoutTest -timeout=5 -test_single_input=%S/hi.txt 2>&1 | FileCheck %s --check-prefix=SingleInputTimeoutTest +SingleInputTimeoutTest: ALARM: working on the last Unit for +SingleInputTimeoutTest-NOT: Test unit written to ./timeout- + RUN: not LLVMFuzzer-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest NullDerefTest: Test unit written to ./crash- RUN: not LLVMFuzzer-NullDerefTest -artifact_prefix=ZZZ 2>&1 | FileCheck %s --check-prefix=NullDerefTestPrefix |