aboutsummaryrefslogtreecommitdiffstats
path: root/test/Instrumentation
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-03-12 18:49:11 +0000
committerKostya Serebryany <kcc@google.com>2012-03-12 18:49:11 +0000
commit1778513fa579b8f92be7bd86868f8f57032d582d (patch)
treeee9a66ea29ab0645e42e3c78726f016c27638656 /test/Instrumentation
parent6c0b3ac8ea51d35bbd2565f17f1a73c3bfcb5cdf (diff)
downloadexternal_llvm-1778513fa579b8f92be7bd86868f8f57032d582d.zip
external_llvm-1778513fa579b8f92be7bd86868f8f57032d582d.tar.gz
external_llvm-1778513fa579b8f92be7bd86868f8f57032d582d.tar.bz2
[asan] move x86-specific test to a separate X86 directory with a custom lit.local.cfg file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Instrumentation')
-rw-r--r--test/Instrumentation/AddressSanitizer/X86/bug_11395.ll (renamed from test/Instrumentation/AddressSanitizer/bug_11395.ll)0
-rw-r--r--test/Instrumentation/AddressSanitizer/X86/lit.local.cfg13
2 files changed, 13 insertions, 0 deletions
diff --git a/test/Instrumentation/AddressSanitizer/bug_11395.ll b/test/Instrumentation/AddressSanitizer/X86/bug_11395.ll
index 35c5c4a..35c5c4a 100644
--- a/test/Instrumentation/AddressSanitizer/bug_11395.ll
+++ b/test/Instrumentation/AddressSanitizer/X86/bug_11395.ll
diff --git a/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg b/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg
new file mode 100644
index 0000000..b05ed3c
--- /dev/null
+++ b/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg
@@ -0,0 +1,13 @@
+config.suffixes = ['.ll', '.c', '.cpp']
+
+def getRoot(config):
+ if not config.parent:
+ return config
+ return getRoot(config.parent)
+
+root = getRoot(config)
+
+targets = set(root.targets_to_build.split())
+if not 'X86' in targets:
+ config.unsupported = True
+