aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorMichał Górny <mgorny@moritz.systems>2020-11-09 10:47:22 +0100
committerMichał Górny <mgorny@moritz.systems>2020-11-10 12:02:38 +0100
commita852cf66ea5d130a09cd796b97b15c18059e95cd (patch)
treec062f8c5a58faa9c88e81411cb3378c868c7cef4 /lldb/test/API/python_api
parent462dd4f803583924ebd5fc9f91da3751862d97ac (diff)
downloadllvm-a852cf66ea5d130a09cd796b97b15c18059e95cd.zip
llvm-a852cf66ea5d130a09cd796b97b15c18059e95cd.tar.gz
llvm-a852cf66ea5d130a09cd796b97b15c18059e95cd.tar.bz2
[lldb] [test] Skip ObjC-based tests via 'objc' category
Replace the plethora of ObjC-implied 'skipUnlessDarwin' decorators with marking tests as 'objc' category (whenever missing), and skip all ObjC tests on non-Darwin platforms. I have used '.categories' file wherever it was present already or all (>1) tests were relying on ObjC, and explicit add_test_categories() where there was only one test. Differential Revision: https://reviews.llvm.org/D91056
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/objc_type/TestObjCType.py3
-rw-r--r--lldb/test/API/python_api/sbtype_typeclass/TestSBTypeTypeClass.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/lldb/test/API/python_api/objc_type/TestObjCType.py b/lldb/test/API/python_api/objc_type/TestObjCType.py
index 03b4150..8599b8a 100644
--- a/lldb/test/API/python_api/objc_type/TestObjCType.py
+++ b/lldb/test/API/python_api/objc_type/TestObjCType.py
@@ -19,8 +19,7 @@ class ObjCSBTypeTestCase(TestBase):
TestBase.setUp(self)
self.line = line_number("main.m", '// Break at this line')
- @skipUnlessDarwin
- @add_test_categories(['pyapi'])
+ @add_test_categories(['objc', 'pyapi'])
def test(self):
"""Test SBType for ObjC classes."""
self.build()
diff --git a/lldb/test/API/python_api/sbtype_typeclass/TestSBTypeTypeClass.py b/lldb/test/API/python_api/sbtype_typeclass/TestSBTypeTypeClass.py
index 59154e4..809ae52 100644
--- a/lldb/test/API/python_api/sbtype_typeclass/TestSBTypeTypeClass.py
+++ b/lldb/test/API/python_api/sbtype_typeclass/TestSBTypeTypeClass.py
@@ -3,7 +3,7 @@ from lldbsuite.test import lldbinline
lldbinline.MakeInlineTest(
__file__, globals(), [
- decorators.skipUnlessDarwin,
+ decorators.add_test_categories(["objc"]),
decorators.expectedFailureAll(
oslist=['macosx'], archs=['i386'],
bugnumber='rdar://28656677')])