[Lldb-commits] [lldb] [LLDB] Convert straightforward test launches to lldbutil (NFC) (PR #224404)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 17 15:45:59 PDT 2026


================
@@ -15,28 +15,10 @@ def test_formatters_api(self):
         self.build()
         self.setTearDownCleanup()
 
-        exe = self.getBuildArtifact("a.out")
-
-        # Create the target
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set the breakpoints
-        breakpoint = target.BreakpointCreateBySourceRegex(
-            "Set breakpoint here", lldb.SBFileSpec("main.cpp")
+        _, _, thread, _ = lldbutil.run_to_source_breakpoint(
----------------
bulbazord wrote:

Can this be set to `self.thread` instead of doing the extra line below?

https://github.com/llvm/llvm-project/pull/224404


More information about the lldb-commits mailing list