17 lines
769 B
Plaintext
17 lines
769 B
Plaintext
|
RUN: DIR=%t_workdir
|
||
|
RUN: BUILD_DIR=$(pwd)
|
||
|
RUN: rm -rf $DIR && mkdir -p $DIR && cd $DIR
|
||
|
RUN: not $BUILD_DIR/LLVMFuzzer-NullDerefTest -dump_coverage=1 2>&1 | FileCheck %s
|
||
|
RUN: $BUILD_DIR/LLVMFuzzer-DSOTest -dump_coverage=1 -runs=0 2>&1 | FileCheck %s --check-prefix=DSO
|
||
|
RUN: not $BUILD_DIR/LLVMFuzzer-NullDerefTest -dump_coverage=0 2>&1 | FileCheck %s --check-prefix=NOCOV
|
||
|
RUN: rm -rf $DIR
|
||
|
|
||
|
|
||
|
CHECK: SanitizerCoverage: ./LLVMFuzzer-NullDerefTest.{{.*}}.sancov {{.*}} PCs written
|
||
|
|
||
|
DSO: SanitizerCoverage: ./LLVMFuzzer-DSOTest.{{.*}}.sancov {{.*}} PCs written
|
||
|
DSO-DAG: SanitizerCoverage: ./libLLVMFuzzer-DSO1.{{.*}}.sancov {{.*}} PCs written
|
||
|
DSO-DAG: SanitizerCoverage: ./libLLVMFuzzer-DSO2.{{.*}}.sancov {{.*}} PCs written
|
||
|
|
||
|
NOCOV-NOT: SanitizerCoverage: {{.*}} PCs written
|