diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-02-28 15:01:38 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-03-01 02:02:40 +0000 |
commit | 15442178c801476f873b0678a99b27f06c8e38d6 (patch) | |
tree | 8947bf9fded863b2875afada669fbe76c425659d /src/os/exec/exec_test.go | |
parent | d945b286758d034b3bb07cbf3a4055b90684c38b (diff) | |
download | go-15442178c801476f873b0678a99b27f06c8e38d6.tar.gz go-15442178c801476f873b0678a99b27f06c8e38d6.zip |
os: don't use waitid on Darwin
According to issue #19314 waitid on Darwin returns if the process is
stopped, even though we specify WEXITED.
Fixes #19314.
Change-Id: I95faf196c11e43b7741efff79351bab45c811bc2
Reviewed-on: https://go-review.googlesource.com/37610
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
-rw-r--r-- | src/os/exec/exec_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go index 7b69db7c76..95af597f15 100644 --- a/src/os/exec/exec_test.go +++ b/src/os/exec/exec_test.go @@ -868,6 +868,9 @@ func TestHelperProcess(*testing.T) { case "stderrfail": fmt.Fprintf(os.Stderr, "some stderr text\n") os.Exit(1) + case "sleep": + time.Sleep(3 * time.Second) + os.Exit(0) default: fmt.Fprintf(os.Stderr, "Unknown command %q\n", cmd) os.Exit(2) |