]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testcshared: use file descriptor 30 for TestUnexportedSymbols
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Apr 2018 21:43:17 +0000 (14:43 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 21 Apr 2018 04:18:51 +0000 (04:18 +0000)
commit0a129dbca6b76e919041d759e8d9a23fc075e6d5
treede810312cebfcce06528c58c5a098606f27cd97d
parentdfb1b696656bd56e10c3085e145fe5f40dc2ba42
misc/cgo/testcshared: use file descriptor 30 for TestUnexportedSymbols

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.

Fixes #23784

Change-Id: I3ac40d6f8569c70d34b470cfca34eff149bf8229
Reviewed-on: https://go-review.googlesource.com/108537
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
misc/cgo/testcshared/main2.c
misc/cgo/testcshared/src/libgo2/libgo2.go