Commit a44cd686 authored by Elias Naur's avatar Elias Naur

misc/ios: don't wait for response to lldb run in the exec wrapper

CL 106096 changed the iOS exec wrapper to directly run the binary
without waiting for a SIGINT signal, but did so in a way that
expects a "(lldb)" response from lldb in 2 seconds. Lldb might
not out output anything until the program finishes, so change the
exec wrapper to just fire and forget the the run command and go
straight to waiting for exit, successfully or otherwise.

Change-Id: I6a2dc63f9b29fe44edb3591afb048b9a8e2e0822
Reviewed-on: https://go-review.googlesource.com/106176
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 70f5afa2
...@@ -261,7 +261,7 @@ func run(bin string, args []string) (err error) { ...@@ -261,7 +261,7 @@ func run(bin string, args []string) (err error) {
started = true started = true
startTestsLen := s.out.Len() startTestsLen := s.out.Len()
s.do("run") fmt.Fprintln(s.in, "run")
passed := func(out *buf) bool { passed := func(out *buf) bool {
// Just to make things fun, lldb sometimes translates \n into \r\n. // Just to make things fun, lldb sometimes translates \n into \r\n.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment