OSDN Git Service

[asan] move x86-specific test to a separate X86 directory with a custom lit.local...
authorKostya Serebryany <kcc@google.com>
Mon, 12 Mar 2012 18:49:11 +0000 (18:49 +0000)
committerKostya Serebryany <kcc@google.com>
Mon, 12 Mar 2012 18:49:11 +0000 (18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152567 91177308-0d34-0410-b5e6-96231b3b80d8

test/Instrumentation/AddressSanitizer/X86/bug_11395.ll [moved from test/Instrumentation/AddressSanitizer/bug_11395.ll with 100% similarity]
test/Instrumentation/AddressSanitizer/X86/lit.local.cfg [new file with mode: 0644]

diff --git a/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg b/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg
new file mode 100644 (file)
index 0000000..b05ed3c
--- /dev/null
@@ -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
+