]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/test: ignore "too many open files" in issue 18146 test
authorIan Lance Taylor <iant@golang.org>
Mon, 5 Dec 2016 22:10:46 +0000 (14:10 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 6 Dec 2016 02:44:58 +0000 (02:44 +0000)
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 <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/test/issue18146.go

index 5ced6ecc22c2ba44923f7dfedd8bd56be0000967..f3b1f4c1762d5665e0a13134517737cb81835739 100644 (file)
@@ -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
                        }