]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] misc/cgo/testcshared: use file descriptor 30 for TestUnexport...
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:25 +0000 (16:30 +0000)
commit516f5ccf57560ed402cdae28a36e1dc9e81444c3
treec77f6b0e81bcd8612a89f8642a97139c8034ec0b
parentf858dbd1f0546d7f9366d295eb7cf17059e45822
[release-branch.go1.10] misc/cgo/testcshared: use file descriptor 30 for TestUnexportedSymbols

Backport of CL 108537 to 1.10 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 #25277

Change-Id: I9d25986f3b59bdeb04aa52407b24aa94712aedff
Reviewed-on: https://go-review.googlesource.com/111995
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