[Lldb-commits] [lldb] r286722 - Disable sanitizer tests on Windows.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Sat Nov 12 08:56:14 PST 2016
Author: zturner
Date: Sat Nov 12 10:56:13 2016
New Revision: 286722
URL: http://llvm.org/viewvc/llvm-project?rev=286722&view=rev
Log:
Disable sanitizer tests on Windows.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/decorators.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/decorators.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/decorators.py?rev=286722&r1=286721&r2=286722&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/decorators.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/decorators.py Sat Nov 12 10:56:13 2016
@@ -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
More information about the lldb-commits
mailing list