diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-04-17 22:10:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-04-17 22:10:58 +0000 |
commit | ea250f561291c184423c4372041c067f5233fa5c (patch) | |
tree | a190311458c423b71ed9f800fd5bd43faa7dccc3 /libgo/go/os | |
parent | 1adb82e11762ce349eeaee1051ea3c379a453b2e (diff) | |
download | gcc-ea250f561291c184423c4372041c067f5233fa5c.zip gcc-ea250f561291c184423c4372041c067f5233fa5c.tar.gz gcc-ea250f561291c184423c4372041c067f5233fa5c.tar.bz2 |
libgo: update to Go 1.8.1 release
Reviewed-on: https://go-review.googlesource.com/40775
From-SVN: r246957
Diffstat (limited to 'libgo/go/os')
-rw-r--r-- | libgo/go/os/exec/exec_test.go | 10 |
1 files changed, 7 insertions, 3 deletions
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 |