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

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 18 12:10:38 PDT 2025


https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/131890

None

>From dc99a05203deef893db75dd2f32a5a6453aaae9a Mon Sep 17 00:00:00 2001
From: Dave Lee <davelee.com at gmail.com>
Date: Tue, 18 Mar 2025 11:33:46 -0700
Subject: [PATCH] [lldb] Fix TestBreakpointLocations

---
 .../breakpoint_locations/TestBreakpointLocations.py           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
index e0c93e3c18581..779dc16567dfd 100644
--- a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
+++ b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
@@ -47,9 +47,9 @@ 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",



More information about the lldb-commits mailing list