]> Cypherpunks repositories - gostls13.git/commit
path/filepath: use a temp dir in path_test.go
authorMostyn Bramley-Moore <mostyn@antipode.se>
Mon, 5 Mar 2018 22:04:47 +0000 (22:04 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 5 Mar 2018 23:38:39 +0000 (23:38 +0000)
commit32e459a09cd2da967fc2c0accf197fecc7b658d5
tree353b594fddfe4e006c5c3c664054e8424d6ce8f3
parent26708439ecb4dc923149b17eb522df46dcc2fb23
path/filepath: use a temp dir in path_test.go

We should avoid writing temp files to GOROOT, since it might be readonly.

Fixes #23881

Change-Id: Iaa38ec404b303f0cf27fdfb7daf1ddd60fd5d1c9
GitHub-Last-Rev: de0211df8474cc3bbef40f792e2f85b3b6ee259c
GitHub-Pull-Request: golang/go#24238
Reviewed-on: https://go-review.googlesource.com/98517
Run-TryBot: Giovanni Bajo <rasky@develer.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/path/filepath/path_test.go