From ea250f561291c184423c4372041c067f5233fa5c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 17 Apr 2017 22:10:58 +0000 Subject: libgo: update to Go 1.8.1 release Reviewed-on: https://go-review.googlesource.com/40775 From-SVN: r246957 --- libgo/go/os/exec/exec_test.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libgo/go/os') diff --git a/libgo/go/os/exec/exec_test.go b/libgo/go/os/exec/exec_test.go index a9cceec..f136351 100644 --- a/libgo/go/os/exec/exec_test.go +++ b/libgo/go/os/exec/exec_test.go @@ -266,9 +266,13 @@ func TestStdinCloseRace(t *testing.T) { t.Fatalf("Start: %v", err) } go func() { - if err := cmd.Process.Kill(); err != nil { - t.Errorf("Kill: %v", err) - } + // We don't check the error return of Kill. It is + // possible that the process has already exited, in + // which case Kill will return an error "process + // already finished". The purpose of this test is to + // see whether the race detector reports an error; it + // doesn't matter whether this Kill succeeds or not. + cmd.Process.Kill() }() go func() { // Send the wrong string, so that the child fails even -- cgit v1.1