forked from OSchip/llvm-project
Fix ubsan/coverage test to put coverage file in a subdirectory.
By default coverage is dumped to the current directory, which may not always be writable. llvm-svn: 272732
This commit is contained in:
parent
6da5fefd44
commit
9ea0833b6e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue