diff options
author | Kostya Serebryany <kcc@google.com> | 2017-08-08 00:12:09 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-08-08 00:12:09 +0000 |
commit | 854be98c937b786bdd25ee1c40a17261452afa24 (patch) | |
tree | 936ee0f233e2dd6d0f4fd91ff8d26e435ad54519 /llvm/lib/Fuzzer/test/coverage.test | |
parent | 1b39be78678f1979e644a3118f9454fbcc5ca4be (diff) | |
download | bcm5719-llvm-854be98c937b786bdd25ee1c40a17261452afa24.tar.gz bcm5719-llvm-854be98c937b786bdd25ee1c40a17261452afa24.zip |
[libFuzzer] simplify the implementation of -print_coverage=1
llvm-svn: 310324
Diffstat (limited to 'llvm/lib/Fuzzer/test/coverage.test')
-rw-r--r-- | llvm/lib/Fuzzer/test/coverage.test | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/Fuzzer/test/coverage.test b/llvm/lib/Fuzzer/test/coverage.test index f0db3aaa759..ebaea19475e 100644 --- a/llvm/lib/Fuzzer/test/coverage.test +++ b/llvm/lib/Fuzzer/test/coverage.test @@ -1,16 +1,14 @@ XFAIL: darwin -RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest -RUN: %cpp_compiler %S/DSO1.cpp -fPIC -shared -o %t-DSO1.so -RUN: %cpp_compiler %S/DSO2.cpp -fPIC -shared -o %t-DSO2.so -RUN: %cpp_compiler %S/DSOTestMain.cpp %S/DSOTestExtra.cpp -L. %t-DSO1.so %t-DSO2.so -o %t-DSOTest +RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/NullDerefTest.cpp -o %t-NullDerefTest +RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO1.cpp -fPIC -shared -o %t-DSO1.so +RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO2.cpp -fPIC -shared -o %t-DSO2.so +RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSOTestMain.cpp %S/DSOTestExtra.cpp -L. %t-DSO1.so %t-DSO2.so -o %t-DSOTest CHECK: COVERAGE: CHECK-DAG: COVERED: {{.*}}in LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:13 CHECK-DAG: COVERED: {{.*}}in LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:14 CHECK-DAG: COVERED: {{.*}}in LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:16 -CHECK-DAG: COVERED: {{.*}}in LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:19 -CHECK: COVERED_DIRS: {{.*}}lib{{[/\\]}}Fuzzer{{[/\\]}}test RUN: not %t-NullDerefTest -print_coverage=1 2>&1 | FileCheck %s RUN: %t-DSOTest -print_coverage=1 -runs=0 2>&1 | FileCheck %s --check-prefix=DSO @@ -23,4 +21,3 @@ DSO-DAG: UNCOVERED_LINE:{{.*}}DSO2{{.*}}DSO2.cpp DSO-DAG: UNCOVERED_FUNC: in Uncovered1 DSO-DAG: UNCOVERED_FUNC: in Uncovered2 DSO-DAG: UNCOVERED_LINE: in LLVMFuzzerTestOneInput -DSO-DAG: UNCOVERED_FILE:{{.*}}DSOTestExtra.cpp |