]> Cypherpunks repositories - gostls13.git/commitdiff
os: enable TestClosedPipeRace* on FreeBSD
authorAustin Clements <austin@google.com>
Sat, 11 Dec 2021 02:17:12 +0000 (21:17 -0500)
committerAustin Clements <austin@google.com>
Tue, 14 Dec 2021 20:25:03 +0000 (20:25 +0000)
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 <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/os/pipe_test.go

index ab6d1ce2b61f577d8ba8210537f9be9df402dc2d..20716bce1e166098276f93e9b034ac5624a74604 100644 (file)
@@ -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