From a44cd6866380c90870ee92a3b053f780a900b282 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 11 Apr 2018 01:24:09 +0200 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- misc/ios/go_darwin_arm_exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/ios/go_darwin_arm_exec.go b/misc/ios/go_darwin_arm_exec.go index 134be27b47..20318ba169 100644 --- a/misc/ios/go_darwin_arm_exec.go +++ b/misc/ios/go_darwin_arm_exec.go @@ -261,7 +261,7 @@ func run(bin string, args []string) (err error) { started = true startTestsLen := s.out.Len() - s.do("run") + fmt.Fprintln(s.in, "run") passed := func(out *buf) bool { // Just to make things fun, lldb sometimes translates \n into \r\n. -- 2.48.1