[Lldb-commits] [lldb] r258049 - Remove skipIfLinuxClang decorator

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 18 07:01:14 PST 2016


Author: labath
Date: Mon Jan 18 09:01:14 2016
New Revision: 258049

URL: http://llvm.org/viewvc/llvm-project?rev=258049&view=rev
Log:
Remove skipIfLinuxClang decorator

it isn't used in the code anymore, and we're trying to cut down on the decorators.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py?rev=258049&r1=258048&r2=258049&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Mon Jan 18 09:01:14 2016
@@ -1056,24 +1056,6 @@ def skipUnlessPlatform(oslist):
     return unittest2.skipUnless(getPlatform() in oslist,
                                 "requires on of %s" % (", ".join(oslist)))
 
-def skipIfLinuxClang(func):
-    """Decorate the item to skip tests that should be skipped if building on 
-       Linux with clang.
-    """
-    if isinstance(func, type) and issubclass(func, unittest2.TestCase):
-        raise Exception("@skipIfLinuxClang can only be used to decorate a test method")
-    @wraps(func)
-    def wrapper(*args, **kwargs):
-        from unittest2 import case
-        self = args[0]
-        compiler = self.getCompiler()
-        platform = self.getPlatform()
-        if "clang" in compiler and platform == "linux":
-            self.skipTest("skipping because Clang is used on Linux")
-        else:
-            func(*args, **kwargs)
-    return wrapper
-
 # provide a function to skip on defined oslist, compiler version, and archs
 # if none is specified for any argument, that argument won't be checked and thus means for all
 # for example,




More information about the lldb-commits mailing list