diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2017-08-04 17:19:45 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2017-08-04 17:19:45 +0000 |
commit | 8ecdd7be154affd28bf91217913676b00db62cb7 (patch) | |
tree | 399c219e64c4dac67e1975ddbc8f5246e50aaabe /llvm/lib/Fuzzer/test/overwrite-input.test | |
parent | ff77cc750cf99b875915a37c1146c5f56de0edc8 (diff) | |
download | bcm5719-llvm-8ecdd7be154affd28bf91217913676b00db62cb7.tar.gz bcm5719-llvm-8ecdd7be154affd28bf91217913676b00db62cb7.zip |
Port libFuzzer tests to LIT. Do not require two-stage build for check-fuzzer.
This revision ports all libFuzzer tests apart from the unittest to LIT.
The advantages of doing so include:
- Tests being self-contained
- Much easier debugging of a single test
- No need for using a two-stage compilation
The unit-test is still compiled using CMake, but it does not need a
freshly built compiler.
NOTE: The previous two-stage bot configuration will NOT work, as in the
second stage build LLVM_USE_SANITIZER is set, which disables ASAN from
being built.
Thus bots will be reconfigured in the next few commits.
Differential Revision: https://reviews.llvm.org/D36295
llvm-svn: 310075
Diffstat (limited to 'llvm/lib/Fuzzer/test/overwrite-input.test')
-rw-r--r-- | llvm/lib/Fuzzer/test/overwrite-input.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/overwrite-input.test b/llvm/lib/Fuzzer/test/overwrite-input.test index 81c27909e8d..54fb66e70eb 100644 --- a/llvm/lib/Fuzzer/test/overwrite-input.test +++ b/llvm/lib/Fuzzer/test/overwrite-input.test @@ -1,2 +1,3 @@ -RUN: not LLVMFuzzer-OverwriteInputTest 2>&1 | FileCheck %s +RUN: %cpp_compiler %S/OverwriteInputTest.cpp -o %t-LLVMFuzzer-OverwriteInputTest +RUN: not %t-LLVMFuzzer-OverwriteInputTest 2>&1 | FileCheck %s CHECK: ERROR: libFuzzer: fuzz target overwrites it's const input |