Author: Michael Buch
Date: 2025-04-27T11:21:01+01:00
New Revision: d605a0d70e3c2f53209c4320c2b6a9a9d86c8227

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

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

Added: 
    

Modified: 
    lldb/test/Shell/Settings/TestCxxFrameFormat.test
    lldb/test/Shell/Settings/TestCxxFrameFormatObjC.test
    lldb/test/Shell/Settings/TestCxxFrameFormatPartialFailure.test
    lldb/test/Shell/Settings/TestFrameFormatFunctionBasename.test
    lldb/test/Shell/Settings/TestFrameFormatFunctionTemplateArguments.test

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/Settings/TestCxxFrameFormat.test 
b/lldb/test/Shell/Settings/TestCxxFrameFormat.test
index 0db3bfa1b4a10..d70db582e9750 100644
--- a/lldb/test/Shell/Settings/TestCxxFrameFormat.test
+++ b/lldb/test/Shell/Settings/TestCxxFrameFormat.test
@@ -24,7 +24,7 @@ int main(int argc, char const *argv[]) {
 #--- commands.input
 settings set plugin.cplusplus.display.function-name-format 
"${function.scope}${function.basename}"
 settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
-break set -l 3
+break set -l 3 -f main.cpp
 
 run
 bt

diff  --git a/lldb/test/Shell/Settings/TestCxxFrameFormatObjC.test 
b/lldb/test/Shell/Settings/TestCxxFrameFormatObjC.test
index ba574444bc8a8..03075d8f32a64 100644
--- a/lldb/test/Shell/Settings/TestCxxFrameFormatObjC.test
+++ b/lldb/test/Shell/Settings/TestCxxFrameFormatObjC.test
@@ -17,7 +17,7 @@ int main() { return bar(10); }
 #--- commands.input
 settings set plugin.cplusplus.display.function-name-format "this affects C++ 
only"
 settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
-break set -l 3
+break set -l 3 -f main.m
 run
 
 bt

diff  --git a/lldb/test/Shell/Settings/TestCxxFrameFormatPartialFailure.test 
b/lldb/test/Shell/Settings/TestCxxFrameFormatPartialFailure.test
index f10de878b8d88..e914ff7a010dd 100644
--- a/lldb/test/Shell/Settings/TestCxxFrameFormatPartialFailure.test
+++ b/lldb/test/Shell/Settings/TestCxxFrameFormatPartialFailure.test
@@ -22,7 +22,7 @@ int main(int argc, const char *argv[]) {
 #--- commands.input
 settings set plugin.cplusplus.display.function-name-format 
"${function.basename}${script.target:invalid_func}"
 settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
-break set -l 2
+break set -l 2 -f main.cpp
 
 run
 bt

diff  --git a/lldb/test/Shell/Settings/TestFrameFormatFunctionBasename.test 
b/lldb/test/Shell/Settings/TestFrameFormatFunctionBasename.test
index a2cb1c6adf064..fdb90a064e273 100644
--- a/lldb/test/Shell/Settings/TestFrameFormatFunctionBasename.test
+++ b/lldb/test/Shell/Settings/TestFrameFormatFunctionBasename.test
@@ -38,7 +38,7 @@ int main() {
 
 #--- commands.input
 settings set -f frame-format "custom-frame '${function.basename}'\n"
-break set -l 5
+break set -l 5 -f main.cpp
 
 run
 bt

diff  --git 
a/lldb/test/Shell/Settings/TestFrameFormatFunctionTemplateArguments.test 
b/lldb/test/Shell/Settings/TestFrameFormatFunctionTemplateArguments.test
index f0c29bcee2ce5..1b5113fb66732 100644
--- a/lldb/test/Shell/Settings/TestFrameFormatFunctionTemplateArguments.test
+++ b/lldb/test/Shell/Settings/TestFrameFormatFunctionTemplateArguments.test
@@ -29,7 +29,7 @@ int main() { return bar(); }
 
 #--- commands.input
 settings set -f frame-format "custom-frame '${function.template-arguments}'\n"
-break set -l 4
+break set -l 4 -f main.cpp
 
 run
 bt


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to