From c351fb16079ae8c88e868960829107a823a86246 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Sat, 12 Nov 2016 16:56:13 +0000 Subject: [PATCH] Disable sanitizer tests on Windows. llvm-svn: 286722 --- lldb/packages/Python/lldbsuite/test/decorators.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index ba0d378..ad7a904 100644 --- a/lldb/packages/Python/lldbsuite/test/decorators.py +++ b/lldb/packages/Python/lldbsuite/test/decorators.py @@ -664,6 +664,8 @@ def skipUnlessThreadSanitizer(func): compiler = os.path.basename(compiler_path) if not compiler.startswith("clang"): return "Test requires clang as compiler" + if lldbplatformutil.getPlatform() == 'windows': + return "TSAN tests not compatible with 'windows'" # rdar://28659145 - TSAN tests don't look like they're supported on i386 if self.getArchitecture() == 'i386' and platform.system() == 'Darwin': return "TSAN tests not compatible with i386 targets" @@ -684,6 +686,8 @@ def skipUnlessAddressSanitizer(func): compiler_path = self.getCompiler() compiler = os.path.basename(compiler_path) f = tempfile.NamedTemporaryFile() + if lldbplatformutil.getPlatform() == 'windows': + return "ASAN tests not compatible with 'windows'" cmd = "echo 'int main() {}' | %s -x c -o %s -" % (compiler_path, f.name) if os.popen(cmd).close() is not None: return None # The compiler cannot compile at all, let's *not* skip the test -- 2.7.4