]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.9] misc/cgo/testcshared: use file descriptor 30 for TestUnexporte...
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Apr 2018 21:43:17 +0000 (14:43 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 May 2018 16:30:47 +0000 (16:30 +0000)
commit0ce6af9f1892cb6137e3c05fb0adf763d03f3fea
treee3e7da488e142c1834a0f81f740e9b91ac9694b2
parent20f58c6075aef1bb7327ab0691ae095f9412ab5b
[release-branch.go1.9] misc/cgo/testcshared: use file descriptor 30 for TestUnexportedSymbols

Backport of CL 108537 to 1.9 release branch.

We were using file descriptor 100, which requires the Linux kernel to
grow the fdtable size. That step may sometimes require a long time,
causing the test to fail. Switch to file descriptor 30, which should
not require growing the fdtable.

Updates #23784
Fixes #25278

Change-Id: I19ea6ab1724ec1807643d5111c44631e20be76b0
Reviewed-on: https://go-review.googlesource.com/111996
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/testcshared/main2.c
misc/cgo/testcshared/src/libgo2/libgo2.go