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/packages/Python/lldbsuite/test/dotest.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py') diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 5a81011..7c0a9ec 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -835,6 +835,13 @@ def checkWatchpointSupport(): print("watchpoint tests will not be run because: " + reason) configuration.skip_categories.append("watchpoint") +def checkObjcSupport(): + from lldbsuite.test import lldbplatformutil + + if not lldbplatformutil.platformIsDarwin(): + print("objc tests will be skipped because of unsupported platform") + configuration.skip_categories.append("objc") + def checkDebugInfoSupport(): import lldb @@ -945,6 +952,7 @@ def run_suite(): checkLibstdcxxSupport() checkWatchpointSupport() checkDebugInfoSupport() + checkObjcSupport() # Perform LLGS tests only on platforms using it. configuration.llgs_platform = ( -- cgit v1.1