summaryrefslogtreecommitdiff
path: root/libgo/go/net/main_unix_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/main_unix_test.go')
-rw-r--r--libgo/go/net/main_unix_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/go/net/main_unix_test.go b/libgo/go/net/main_unix_test.go
index bfb4cd0065..0cc129f34d 100644
--- a/libgo/go/net/main_unix_test.go
+++ b/libgo/go/net/main_unix_test.go
@@ -45,6 +45,7 @@ func uninstallTestHooks() {
}
}
+// forceCloseSockets must be called only from TestMain.
func forceCloseSockets() {
for s := range sw.Sockets() {
closeFunc(s)