forked from OSchip/llvm-project
testsuite: skipIfNoSBHeaders should skip when running remotely
The LLDB dylib/framework will not be available on the remote host, it makes no sense to try to run those tests in a remote scenario.
This commit is contained in:
parent
2ff545e76d
commit
270fe47aae
|
@ -517,6 +517,9 @@ def skipIfRemote(func):
|
|||
def skipIfNoSBHeaders(func):
|
||||
"""Decorate the item to mark tests that should be skipped when LLDB is built with no SB API headers."""
|
||||
def are_sb_headers_missing():
|
||||
if lldb.remote_platform:
|
||||
return "skip because SBHeaders tests make no sense remotely"
|
||||
|
||||
if lldbplatformutil.getHostPlatform() == 'darwin':
|
||||
header = os.path.join(
|
||||
os.environ["LLDB_LIB_DIR"],
|
||||
|
|
Loading…
Reference in New Issue