[Lldb-commits] [lldb] r236402 - Fixed skipIfLinuxClang to check the target architecture

Vince Harron vince at nethacker.com
Sun May 3 19:59:19 PDT 2015

Author: vharron
Date: Sun May  3 21:59:19 2015
New Revision: 236402

URL: http://llvm.org/viewvc/llvm-project?rev=236402&view=rev
Fixed skipIfLinuxClang to check the target architecture

Instead of the host architecture

This decorator isn't in use anywhere currently.
Add it to a test and run


Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=236402&r1=236401&r2=236402&view=diff
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Sun May  3 21:59:19 2015
@@ -747,8 +747,8 @@ def skipIfLinuxClang(func):
         from unittest2 import case
         self = args[0]
         compiler = self.getCompiler()
-        platform = sys.platform
-        if "clang" in compiler and "linux" in platform:
+        platform = self.getPlatform()
+        if "clang" in compiler and platform == "linux":
             self.skipTest("skipping because Clang is used on Linux")
             func(*args, **kwargs)

More information about the lldb-commits mailing list