Summary: This involved various fixes: - Move a test that uses ulimit to Posix. - Add a few "REQUIRES: shell" lines to tests using backtick subshell evaluation. - The MSVC CRT buffers stdio if the output is a pipe by default. Some tests need that disabled to avoid interleaving test stdio with asan output. - MSVC headers provide _alloca instead of alloca (go figure), so add a portability macro to the two alloca tests. - XFAIL tests that rely on accurate symbols, we need to pass more flags to make that work. - MSVC's printf implementation of %p uses upper case letters and doesn't add 0x, so do that manually. - Accept "SEGV" or "access-violation" reports in crash tests. Reviewers: samsonov Subscribers: tberghammer, danalbert, llvm-commits, srhines Differential Revision: http://reviews.llvm.org/D12019 llvm-svn: 245073
21 lines
686 B
C++
21 lines
686 B
C++
// Test that no data is collected without a runtime flag.
|
|
//
|
|
// RUN: %clangxx_asan -fsanitize-coverage=func %s -o %t
|
|
//
|
|
// RUN: rm -rf %T/coverage-disabled
|
|
//
|
|
// RUN: mkdir -p %T/coverage-disabled/normal
|
|
// RUN: %env_asan_opts=coverage_direct=0:coverage_dir='"%T/coverage-disabled/normal"':verbosity=1 %run %t
|
|
// RUN: not %sancov print %T/coverage-disabled/normal/*.sancov 2>&1
|
|
//
|
|
// RUN: mkdir -p %T/coverage-disabled/direct
|
|
// RUN: %env_asan_opts=coverage_direct=1:coverage_dir='"%T/coverage-disabled/direct"':verbosity=1 %run %t
|
|
// RUN: cd %T/coverage-disabled/direct
|
|
// RUN: not %sancov rawunpack *.sancov
|
|
//
|
|
// UNSUPPORTED: android
|
|
|
|
int main(int argc, char **argv) {
|
|
return 0;
|
|
}
|