diff options
author | Kostya Serebryany <kcc@google.com> | 2014-03-27 07:36:26 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-03-27 07:36:26 +0000 |
commit | e4078bed8c36286a6d85a67cd3cbeac90cb94f68 (patch) | |
tree | f4b7fea8bd3dfdf52eb471e00d5e9a148773438a /test | |
parent | b1873d9889075211e47e614f85fc0238e38c6ce2 (diff) |
[asan] Do not sanitize kernel area on 32-bit targets, patch by Yuri Gribov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/asan/lit.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/asan/lit.cfg b/test/asan/lit.cfg index 21c9873af..f24e68037 100644 --- a/test/asan/lit.cfg +++ b/test/asan/lit.cfg @@ -60,8 +60,15 @@ if not os.path.exists(asan_symbolize): python_exec = get_required_attr(config, "python_executable") config.substitutions.append( ("%asan_symbolize", python_exec + " " + asan_symbolize + " ") ) +# Determine kernel bitness +if config.host_arch.find('64') != -1 and config.android != "TRUE": + kernel_bits = '64' +else: + kernel_bits = '32' + # Define CHECK-%os to check for OS-dependent output. config.substitutions.append( ('CHECK-%os', ("CHECK-" + config.host_os))) +config.substitutions.append( ('CHECK-%kernel_bits', ("CHECK-kernel-" + kernel_bits + "-bits"))) config.available_features.add("asan-" + config.bits + "-bits") |