Lines Matching full:coverage
1 // Test for direct coverage writing enabled at activation time.
3 // RUN: %clangxx_asan -fsanitize-coverage=func -DSHARED %s -shared -o %dynamiclib -fPIC
5 // RUN: %clangxx_asan -fsanitize-coverage=func %t.o %libdl -o %t
7 // RUN: rm -rf %T/coverage-direct-activation
9 // RUN: mkdir -p %T/coverage-direct-activation/normal
10 // RUN: %env_asan_opts=coverage=1,coverage_direct=0,coverage_dir=%T/coverage-direct-activation/norm…
11 // RUN: %sancov print %T/coverage-direct-activation/normal/*.sancov >%T/coverage-direct-activation/…
13 // RUN: mkdir -p %T/coverage-direct-activation/direct
15 // RUN: ASAN_ACTIVATION_OPTIONS=coverage=1,coverage_dir=%T/coverage-direct-activation/direct %run…
16 // RUN: cd %T/coverage-direct-activation/direct
21 // Test start_deactivated=1,coverage=1 in ASAN_OPTIONS.
23 // RUN: diff -u coverage-direct-activation/normal/out.txt coverage-direct-activation/direct/out.txt
25 // RUN: mkdir -p %T/coverage-direct-activation/direct2
26 // RUN: %env_asan_opts=start_deactivated=1,coverage=1,coverage_direct=1,verbosity=1 \
27 // RUN: ASAN_ACTIVATION_OPTIONS=coverage_dir=%T/coverage-direct-activation/direct2 %run %t %dynam…
28 // RUN: cd %T/coverage-direct-activation/direct2
33 // RUN: diff -u coverage-direct-activation/normal/out.txt coverage-direct-activation/direct2/out.txt