diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-02-17 19:37:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-02-17 19:37:28 +0000 |
commit | abacad30a54c59ad437ccf54ec5236a8dd7f3ba9 (patch) | |
tree | b239f1e14765bf9a57c1a5f31b334ba5e9d7af0a /test/lsan | |
parent | 9b201f5d5e4ae2a3b15fc7ae974e808a0964a0c0 (diff) | |
download | src-vendor/compiler-rt/compiler-rt-release_40-r296202.tar.gz src-vendor/compiler-rt/compiler-rt-release_40-r296202.zip |
Vendor import of compiler-rt release_40 branch r295380:vendor/compiler-rt/compiler-rt-release_400-r297347vendor/compiler-rt/compiler-rt-release_40-r296509vendor/compiler-rt/compiler-rt-release_40-r296202vendor/compiler-rt/compiler-rt-release_40-r296002vendor/compiler-rt/compiler-rt-release_40-r295910vendor/compiler-rt/compiler-rt-release_40-r295380
Diffstat (limited to 'test/lsan')
-rw-r--r-- | test/lsan/TestCases/strace_test.cc | 1 | ||||
-rw-r--r-- | test/lsan/lit.common.cfg | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/lsan/TestCases/strace_test.cc b/test/lsan/TestCases/strace_test.cc index b3568d0b44e8..b25e05753848 100644 --- a/test/lsan/TestCases/strace_test.cc +++ b/test/lsan/TestCases/strace_test.cc @@ -1,4 +1,5 @@ // Test that lsan reports a proper error when running under strace. +// REQUIRES: strace // RUN: %clangxx_lsan %s -o %t // RUN: not strace -o /dev/null %run %t 2>&1 | FileCheck %s diff --git a/test/lsan/lit.common.cfg b/test/lsan/lit.common.cfg index 6002e2d69444..8580eec33d28 100644 --- a/test/lsan/lit.common.cfg +++ b/test/lsan/lit.common.cfg @@ -4,6 +4,8 @@ import os +import lit.util + def get_required_attr(config, attr_name): attr_value = getattr(config, attr_name, None) if attr_value == None: @@ -29,6 +31,9 @@ else: lit_config.fatal("Unknown LSan test mode: %r" % lsan_lit_test_mode) config.name += config.name_suffix +if lit.util.which('strace'): + config.available_features.add('strace') + clang_cflags = ["-O0", config.target_cflags] + config.debug_info_flags clang_cxxflags = config.cxx_mode_flags + clang_cflags lsan_incdir = config.test_source_root + "/../" |