fix cross platform error

fix cross platform error
pull/5487/head
runner 2016-01-31 11:02:49 +08:00
parent 60df13fb56
commit 217095ad08
1 changed files with 1 additions and 1 deletions

View File

@ -1231,7 +1231,7 @@ func testTempDir(skip int) string {
}
_, prefix := path.Split(runtime.FuncForPC(pc).Name())
// Make a temp dir prefixed with calling function's name.
dir, err := ioutil.TempDir("/tmp", prefix)
dir, err := ioutil.TempDir(os.TempDir(), prefix)
if err != nil {
panic(err)
}