[Lldb-commits] [lldb] 5728813 - [lldb] Fix TestBreakpointLocations (#131890)

via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 18 22:57:39 PDT 2025


Author: Dave Lee
Date: 2025-03-18T22:57:35-07:00
New Revision: 57288136fecfac35ef161cb8f147d269715d2634

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

LOG: [lldb] Fix TestBreakpointLocations (#131890)

Added: 
    

Modified: 
    lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
index e0c93e3c18581..6ed3c902f79e3 100644
--- a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
+++ b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
@@ -47,13 +47,13 @@ def set_breakpoint(self):
         self.expect(
             "breakpoint list -f",
             "Breakpoint locations shown correctly",
+            ordered=False,
             substrs=[
-                "1: file = 'main.c', line = %d, exact_match = 0, locations = 3"
-                % self.line
+                f"1: file = 'main.c', line = {self.line}, exact_match = 0, locations = 3"
             ],
             patterns=[
-                "where = a.out`func_inlined .+unresolved, hit count = 0",
-                r"where = a.out`main .+\[inlined\].+unresolved, hit count = 0",
+                "where = a.out`func_inlined .+?unresolved, hit count = 0",
+                r"where = a.out`main .+?\[inlined\].+?unresolved, hit count = 0",
             ],
         )
 


        


More information about the lldb-commits mailing list