From: Ian Lance Taylor Date: Mon, 5 Dec 2016 22:10:46 +0000 (-0800) Subject: misc/cgo/test: ignore "too many open files" in issue 18146 test X-Git-Tag: go1.8beta2~87 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6c9f600d4991f66f1ce621c4e2d9ea72d5188d34;p=gostls13.git misc/cgo/test: ignore "too many open files" in issue 18146 test Seen on the OpenBSD/AMD64 builder: https://build.golang.org/log/fa34df1bcd3af12d4fc0fb0e60e3c6197a2a6f75 Update #18146. Change-Id: I2646621488be84d50f47c312baa0817c72e3c058 Reviewed-on: https://go-review.googlesource.com/33907 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/misc/cgo/test/issue18146.go b/misc/cgo/test/issue18146.go index 5ced6ecc22..f3b1f4c176 100644 --- a/misc/cgo/test/issue18146.go +++ b/misc/cgo/test/issue18146.go @@ -67,7 +67,7 @@ func test18146(t *testing.T) { if pe, ok := err.(*os.PathError); ok { err = pe.Err } - if se, ok := err.(syscall.Errno); ok && se == syscall.EAGAIN { + if se, ok := err.(syscall.Errno); ok && (se == syscall.EAGAIN || se == syscall.EMFILE) { time.Sleep(time.Millisecond) continue }