From a852cf66ea5d130a09cd796b97b15c18059e95cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 9 Nov 2020 10:47:22 +0100 Subject: [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 --- lldb/test/API/python_api/objc_type/TestObjCType.py | 3 +-- lldb/test/API/python_api/sbtype_typeclass/TestSBTypeTypeClass.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'lldb/test/API/python_api') 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')]) -- cgit v1.1