diff --git a/compiler-rt/test/ubsan/TestCases/coverage.cc b/compiler-rt/test/ubsan/TestCases/coverage.cc index d34e570f8671..2f3caccbf894 100644 --- a/compiler-rt/test/ubsan/TestCases/coverage.cc +++ b/compiler-rt/test/ubsan/TestCases/coverage.cc @@ -1,7 +1,8 @@ +// RUN: mkdir -p %T/coverage // RUN: %clangxx -O1 -fsanitize-coverage=func %s -o %t -// RUN: %env_ubsan_opts=coverage=1:coverage_bitset=1:verbosity=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK1 +// RUN: %env_ubsan_opts=coverage=1:coverage_bitset=1:verbosity=1:coverage_dir=%T/coverage %run %t 2>&1 | FileCheck %s --check-prefix=CHECK1 // RUN: %clangxx -O1 -fsanitize-coverage=bb %s -o %t -// RUN: %env_ubsan_opts=coverage=1:coverage_bitset=1:verbosity=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK2 +// RUN: %env_ubsan_opts=coverage=1:coverage_bitset=1:verbosity=1:coverage_dir=%T/coverage %run %t 2>&1 | FileCheck %s --check-prefix=CHECK2 // // UNSUPPORTED: ubsan-tsan // UNSUPPORTED: android