Skip to content

Commit 35bcf2d

Browse files
authored
Merge pull request #9034 from jasonmolenda/cp/TestEarlyProcessLaunch-v-macOS15-fix
[lldb] [NFC] Update TestEarlyProcessLaunch to work on macOS 15
2 parents 097782e + 6c156db commit 35bcf2d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lldb/test/API/macosx/early-process-launch/TestEarlyProcessLaunch.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test that we don't read objc class tables early in process startup."""
22

3-
43
import time
54
import lldb
65
from lldbsuite.test.decorators import *
@@ -30,7 +29,14 @@ def test_early_process_launch(self):
3029
###
3130
### Use the types logging to detect the difference.
3231

33-
target, process, _, bkpt = lldbutil.run_to_name_breakpoint(self, "malloc")
32+
exe = self.getBuildArtifact("a.out")
33+
target = self.dbg.CreateTarget(exe)
34+
self.assertTrue(target.IsValid())
35+
bkpt = target.BreakpointCreateByRegex("alloc", None)
36+
self.assertTrue(bkpt.IsValid())
37+
(target, process, thread, bkpt) = lldbutil.run_to_breakpoint_do_run(
38+
self, target, bkpt
39+
)
3440

3541
target.DisableAllBreakpoints()
3642
target.BreakpointCreateByName("main")

0 commit comments

Comments
 (0)