Skip to content

Commit 4c91627

Browse files
[lldb][test] Use lld on Windows in frame format test (#156320)
link.exe discards DWARF information. Other linkers on non-Windows do not. Uses the same solution as TestFrameFunctionInlined.test. This test was failing with the native PDB plugin but shouldn't have been using PDB anyway (see #114906). Passes with DWARF and lld.
1 parent 13357e8 commit 4c91627

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/test/Shell/Settings/TestFrameFormatFunctionReturnObjC.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
# ${function.return-right} in languages that don't implement this frame
33
# format variable (in this case Objective-C).
44
#
5+
# link.exe will discard DWARF information.
6+
# REQUIRES: (system-windows && lld) || !system-windows
7+
#
58
# RUN: split-file %s %t
6-
# RUN: %clang_host -g -gdwarf %t/main.m -o %t.objc.out
9+
# RUN: %clang_host -g -gdwarf %t/main.m -o %t.objc.out %if system-windows %{-fuse-ld=lld%}
710
# RUN: %lldb -x -b -s %t/commands.input %t.objc.out -o exit 2>&1 \
811
# RUN: | FileCheck %s
912

0 commit comments

Comments
 (0)