Skip to content

Commit fc5495c

Browse files
committed
[lldb] Make TestAArch64AdrpAdd depend on the AArch64 target
LLDB is using LLVM's target-specific disassembler which is only available when the respective LLVM target has been enabled in the build config. This patch just skips the test if there is no arm64 target (and its disassembler) available in the current build config. Reviewed By: jasonmolenda Differential Revision: https://reviews.llvm.org/D108145
1 parent 9cfa9b4 commit fc5495c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/test/API/functionalities/disassemble/aarch64-adrp-add/TestAArch64AdrpAdd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class TestAArch64AdrpAdd(TestBase):
1111
mydir = TestBase.compute_mydir(__file__)
1212

1313
@no_debug_info_test
14+
@skipIfLLVMTargetMissing("AArch64")
1415
def test_arm64(self):
1516
src_dir = self.getSourceDir()
1617
yaml_path = os.path.join(src_dir, "a.out-arm64.yaml")
@@ -27,6 +28,7 @@ def test_arm64(self):
2728
self.disassemble_check_for_hi_and_foo(target, f, binaryname)
2829

2930
@no_debug_info_test
31+
@skipIfLLVMTargetMissing("AArch64")
3032
def test_arm64_32(self):
3133
src_dir = self.getSourceDir()
3234
yaml_path = os.path.join(src_dir, "a.out-arm64_32.yaml")

0 commit comments

Comments
 (0)