From: Austin Clements Date: Sat, 11 Dec 2021 02:17:12 +0000 (-0500) Subject: os: enable TestClosedPipeRace* on FreeBSD X-Git-Tag: go1.18beta2~245 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0f05ed3b7821db1d73954aa9e7fd49e5a19ec12a;p=gostls13.git os: enable TestClosedPipeRace* on FreeBSD This test has worked since CL 165801 (committed March 12, 2019), so stop skipping it. With this, we check that Close makes concurrent I/O operations on pipes return Errclosed on all platforms. Updates #19093. Change-Id: Ic090c70996c115abf80d8f9b93ca2aeaf347c9d8 Reviewed-on: https://go-review.googlesource.com/c/go/+/371016 Trust: Austin Clements Reviewed-by: Ian Lance Taylor Run-TryBot: Austin Clements TryBot-Result: Gopher Robot --- diff --git a/src/os/pipe_test.go b/src/os/pipe_test.go index ab6d1ce2b6..20716bce1e 100644 --- a/src/os/pipe_test.go +++ b/src/os/pipe_test.go @@ -150,11 +150,6 @@ func TestStdPipeHelper(t *testing.T) { } func testClosedPipeRace(t *testing.T, read bool) { - switch runtime.GOOS { - case "freebsd": - t.Skip("FreeBSD does not use the poller; issue 19093") - } - limit := 1 if !read { // Get the amount we have to write to overload a pipe