Commit 9f399a03 authored by Mikio Hara's avatar Mikio Hara

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
parent 293c880f
......@@ -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)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment