We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e45c7d commit 71d2c3cCopy full SHA for 71d2c3c
lldb/test/API/macosx/posix_spawn/TestLaunchProcessPosixSpawn.py
@@ -36,9 +36,11 @@ def no_apple_silicon(self):
36
37
def run_arch(self, exe, arch):
38
self.runCmd("target create -arch {} {}".format(arch, exe))
39
- self.runCmd("run")
40
-
41
- process = self.dbg.GetSelectedTarget().process
+ target = self.dbg.GetSelectedTarget()
+ launch_info = target.GetLaunchInfo()
+ error = lldb.SBError()
42
+ process = target.Launch(launch_info, error)
43
+ self.assertTrue(error.Success, str(error))
44
self.assertState(process.GetState(), lldb.eStateExited)
45
self.assertIn("slice: {}".format(arch), process.GetSTDOUT(1000))
46
0 commit comments