Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lldb/packages/Python/lldbsuite/test/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,20 @@ def arch_doesnt_match():
return skipTestIfFn(arch_doesnt_match)


def skipIfArch(arch):
"""Decorate the item to skip tests if running on the specified architecture."""

def arch_matches():
target_arch = lldbplatformutil.getArchitecture()
if arch == target_arch:
return (
"Test does not run on " + arch + ", but target arch is " + target_arch
)
return None

return skipTestIfFn(arch_matches)


def skipIfTargetAndroid(bugnumber=None, api_levels=None, archs=None):
"""Decorator to skip tests when the target is Android.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

# --keep-symbol causes error on Windows: llvm-strip.exe: error: option is not supported for COFF
@skipIfWindows
# Unnamed symbols don't get into the .eh_frame section on ARM, so LLDB can't find them.
@skipIfArch("arm")
class TestUnnamedSymbolLookup(TestBase):
def test_unnamed_symbol_lookup(self):
"""Test looking up unnamed symbol synthetic name"""
Expand Down
Loading