Skip to content

Commit d472379

Browse files
UltimateForce21tstellar
authored andcommitted
Skip TestVariableAnnotationsDisassembler.py on non-x86 architectures
The test TestVariableAnnotationsDisassembler.py relies on an .s input file generated for x86_64 with assembly directives that are not portable (e.g., DWARF sections and comments using #). This causes build failures on non-x86 targets such as AArch64. This change skips the test unless the architecture is x86_64, ensuring it only runs where the assembly input is valid.
1 parent a5bbb38 commit d472379

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lldb/test/API/functionalities/disassembler-variables/TestVariableAnnotationsDisassembler.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def _disassemble_verbose_symbol(self, symname):
2222
self.runCmd(f"disassemble -n {symname} -v", check=True)
2323
return self.res.GetOutput()
2424

25+
@skipIf(archs=no_match(["x86_64"]))
2526
def test_d_original_example_O1(self):
2627
obj = self._build_obj("d_original_example.o")
2728
target = self._create_target(obj)
@@ -33,6 +34,7 @@ def test_d_original_example_O1(self):
3334
self.assertNotIn("<decoding error>", out)
3435

3536
@no_debug_info_test
37+
@skipIf(archs=no_match(["x86_64"]))
3638
def test_regs_int_params(self):
3739
obj = self._build_obj("regs_int_params.o")
3840
target = self._create_target(obj)
@@ -47,6 +49,7 @@ def test_regs_int_params(self):
4749
self.assertNotIn("<decoding error>", out)
4850

4951
@no_debug_info_test
52+
@skipIf(archs=no_match(["x86_64"]))
5053
def test_regs_fp_params(self):
5154
obj = self._build_obj("regs_fp_params.o")
5255
target = self._create_target(obj)
@@ -61,6 +64,7 @@ def test_regs_fp_params(self):
6164
self.assertNotIn("<decoding error>", out)
6265

6366
@no_debug_info_test
67+
@skipIf(archs=no_match(["x86_64"]))
6468
def test_regs_mixed_params(self):
6569
obj = self._build_obj("regs_mixed_params.o")
6670
target = self._create_target(obj)
@@ -75,6 +79,7 @@ def test_regs_mixed_params(self):
7579
self.assertNotIn("<decoding error>", out)
7680

7781
@no_debug_info_test
82+
@skipIf(archs=no_match(["x86_64"]))
7883
def test_live_across_call(self):
7984
obj = self._build_obj("live_across_call.o")
8085
target = self._create_target(obj)
@@ -86,6 +91,7 @@ def test_live_across_call(self):
8691
self.assertNotIn("<decoding error>", out)
8792

8893
@no_debug_info_test
94+
@skipIf(archs=no_match(["x86_64"]))
8995
def test_loop_reg_rotate(self):
9096
obj = self._build_obj("loop_reg_rotate.o")
9197
target = self._create_target(obj)
@@ -99,6 +105,7 @@ def test_loop_reg_rotate(self):
99105
self.assertNotIn("<decoding error>", out)
100106

101107
@no_debug_info_test
108+
@skipIf(archs=no_match(["x86_64"]))
102109
def test_seed_reg_const_undef(self):
103110
obj = self._build_obj("seed_reg_const_undef.o")
104111
target = self._create_target(obj)

0 commit comments

Comments
 (0)