mirror of
https://github.com/golang/go.git
synced 2025-05-23 00:11:26 +00:00
net: make sure to use /tmp in unix domain socket tests
R=golang-dev, bradfitz, dave, rsc CC=golang-dev https://golang.org/cl/7547044
This commit is contained in:
parent
293c880f13
commit
9f399a0301
@ -15,9 +15,11 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// testUnixAddr uses ioutil.TempFile to get a name that is unique.
|
||||
// testUnixAddr uses ioutil.TempFile to get a name that is unique. It
|
||||
// also uses /tmp directory in case it is prohibited to create UNIX
|
||||
// sockets in TMPDIR.
|
||||
func testUnixAddr() string {
|
||||
f, err := ioutil.TempFile("", "nettest")
|
||||
f, err := ioutil.TempFile("/tmp", "nettest")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user