Skip to content

Commit 599d353

Browse files
[lldb] Restrict TestVariableAnnotationsDisassembler.py to ELF x86_64 (skip on Windows/COFF) (#156026)
The `TestVariableAnnotationsDisassembler.py` test assembles `d_original_example.s`, which contains ELF-specific directives such as: - `.ident` - `.section ".note.GNU-stack", "", @progbits` - `.section .debug_line, "", @progbits` These directives are not understood by COFF on Windows, so the test fails on the lldb-remote-linux-win builder even when running on x86_64. This patch adds a decorator to gate the test, - `@skipUnlessPlatform(["linux", "freebsd", "netbsd", "android"])` — runs only on ELF platforms Follow-up to #155942.
1 parent f4665b7 commit 599d353

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import re
66

77

8+
# Requires ELF assembler directives (.section … @progbits, .ident, etc.);
9+
# not compatible with COFF/Mach-O toolchains.
10+
@skipUnlessPlatform(["linux", "android", "freebsd", "netbsd"])
811
class TestVariableAnnotationsDisassembler(TestBase):
912
def _build_obj(self, obj_name: str) -> str:
1013
# Let the Makefile build all .o’s (pattern rule). Then grab the one we need.

0 commit comments

Comments
 (0)