aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
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/packages/Python/lldbsuite/test/dotest.py
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/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py8
1 files changed, 8 insertions, 0 deletions
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 = (