File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
packages/Python/lldbsuite/test
test/API/python_api/unnamed_symbol_lookup Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -799,6 +799,20 @@ def arch_doesnt_match():
799799 return skipTestIfFn (arch_doesnt_match )
800800
801801
802+ def skipIfArch (arch ):
803+ """Decorate the item to skip tests if running on the specified architecture."""
804+
805+ def arch_matches ():
806+ target_arch = lldbplatformutil .getArchitecture ()
807+ if arch == target_arch :
808+ return (
809+ "Test does not run on " + arch + ", but target arch is " + target_arch
810+ )
811+ return None
812+
813+ return skipTestIfFn (arch_matches )
814+
815+
802816def skipIfTargetAndroid (bugnumber = None , api_levels = None , archs = None ):
803817 """Decorator to skip tests when the target is Android.
804818
Original file line number Diff line number Diff line change 1010
1111# --keep-symbol causes error on Windows: llvm-strip.exe: error: option is not supported for COFF
1212@skipIfWindows
13+ # Unnamed symbols don't get into the .eh_frame section on ARM, so LLDB can't find them.
14+ @skipIfArch ("arm" )
1315class TestUnnamedSymbolLookup (TestBase ):
1416 def test_unnamed_symbol_lookup (self ):
1517 """Test looking up unnamed symbol synthetic name"""
You can’t perform that action at this time.
0 commit comments