From 1778513fa579b8f92be7bd86868f8f57032d582d Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 12 Mar 2012 18:49:11 +0000 Subject: [PATCH] [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 --- .../AddressSanitizer/{ => X86}/bug_11395.ll | 0 .../AddressSanitizer/X86/lit.local.cfg | 13 +++++++++++++ 2 files changed, 13 insertions(+) rename test/Instrumentation/AddressSanitizer/{ => X86}/bug_11395.ll (100%) create mode 100644 test/Instrumentation/AddressSanitizer/X86/lit.local.cfg diff --git a/test/Instrumentation/AddressSanitizer/bug_11395.ll b/test/Instrumentation/AddressSanitizer/X86/bug_11395.ll similarity index 100% rename from test/Instrumentation/AddressSanitizer/bug_11395.ll rename to 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 00000000000..b05ed3c77c1 --- /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 +