Skip to content

Commit d605a0d

Browse files
committed
[lldb][test] FrameFormat tests: Specify filename when setting breakpoints
Try to work around following error on some of the Linux CI: ``` 8: (lldb) settings set -f frame-format "custom-frame '${function.basename}'\n" check:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ check:50'1 ? possible intended match 9: (lldb) break set -l 5 check:50'0 ~~~~~~~~~~~~~~~~~~~~~~ 10: error: No selected frame to use to find the default file. check:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 11: error: No file supplied and no default file available. check:50'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 12: (lldb) exit check:50'0 ~~~~~~~~~~~~ ```
1 parent edb05c4 commit d605a0d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lldb/test/Shell/Settings/TestCxxFrameFormat.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int main(int argc, char const *argv[]) {
2424
#--- commands.input
2525
settings set plugin.cplusplus.display.function-name-format "${function.scope}${function.basename}"
2626
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
27-
break set -l 3
27+
break set -l 3 -f main.cpp
2828

2929
run
3030
bt

lldb/test/Shell/Settings/TestCxxFrameFormatObjC.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main() { return bar(10); }
1717
#--- commands.input
1818
settings set plugin.cplusplus.display.function-name-format "this affects C++ only"
1919
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
20-
break set -l 3
20+
break set -l 3 -f main.m
2121
run
2222

2323
bt

lldb/test/Shell/Settings/TestCxxFrameFormatPartialFailure.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int main(int argc, const char *argv[]) {
2222
#--- commands.input
2323
settings set plugin.cplusplus.display.function-name-format "${function.basename}${script.target:invalid_func}"
2424
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
25-
break set -l 2
25+
break set -l 2 -f main.cpp
2626

2727
run
2828
bt

lldb/test/Shell/Settings/TestFrameFormatFunctionBasename.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main() {
3838

3939
#--- commands.input
4040
settings set -f frame-format "custom-frame '${function.basename}'\n"
41-
break set -l 5
41+
break set -l 5 -f main.cpp
4242

4343
run
4444
bt

lldb/test/Shell/Settings/TestFrameFormatFunctionTemplateArguments.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main() { return bar(); }
2929

3030
#--- commands.input
3131
settings set -f frame-format "custom-frame '${function.template-arguments}'\n"
32-
break set -l 4
32+
break set -l 4 -f main.cpp
3333

3434
run
3535
bt

0 commit comments

Comments
 (0)