Skip to content

Commit 6c9f600

Browse files
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 8016808 commit 6c9f600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/cgo/test/issue18146.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func test18146(t *testing.T) {
6767
if pe, ok := err.(*os.PathError); ok {
6868
err = pe.Err
6969
}
70-
if se, ok := err.(syscall.Errno); ok && se == syscall.EAGAIN {
70+
if se, ok := err.(syscall.Errno); ok && (se == syscall.EAGAIN || se == syscall.EMFILE) {
7171
time.Sleep(time.Millisecond)
7272
continue
7373
}

0 commit comments

Comments
 (0)