[Lldb-commits] [lldb] fc5495c - [lldb] Make TestAArch64AdrpAdd depend on the AArch64 target

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 17 04:47:40 PDT 2021


Author: Raphael Isemann
Date: 2021-08-17T13:47:22+02:00
New Revision: fc5495c351a1f7ce28c7166a70113ce45906ff7b

URL: https://github.com/llvm/llvm-project/commit/fc5495c351a1f7ce28c7166a70113ce45906ff7b
DIFF: https://github.com/llvm/llvm-project/commit/fc5495c351a1f7ce28c7166a70113ce45906ff7b.diff

LOG: [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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/disassemble/aarch64-adrp-add/TestAArch64AdrpAdd.py b/lldb/test/API/functionalities/disassemble/aarch64-adrp-add/TestAArch64AdrpAdd.py
index 325607028c033..c5b9921d7e62d 100644
--- a/lldb/test/API/functionalities/disassemble/aarch64-adrp-add/TestAArch64AdrpAdd.py
+++ b/lldb/test/API/functionalities/disassemble/aarch64-adrp-add/TestAArch64AdrpAdd.py
@@ -11,6 +11,7 @@ class TestAArch64AdrpAdd(TestBase):
     mydir = TestBase.compute_mydir(__file__)
 
     @no_debug_info_test
+    @skipIfLLVMTargetMissing("AArch64")
     def test_arm64(self):
         src_dir = self.getSourceDir()
         yaml_path = os.path.join(src_dir, "a.out-arm64.yaml")
@@ -27,6 +28,7 @@ def test_arm64(self):
                 self.disassemble_check_for_hi_and_foo(target, f, binaryname)
 
     @no_debug_info_test
+    @skipIfLLVMTargetMissing("AArch64")
     def test_arm64_32(self):
         src_dir = self.getSourceDir()
         yaml_path = os.path.join(src_dir, "a.out-arm64_32.yaml")


        


More information about the lldb-commits mailing list