]> Cypherpunks.ru repositories - gostls13.git/commit
path/filepath: replace os.MkdirTemp with T.TempDir
authorManlio Perillo <manlio.perillo@gmail.com>
Wed, 7 Apr 2021 14:48:41 +0000 (16:48 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Sat, 10 Apr 2021 08:13:32 +0000 (08:13 +0000)
commit11f159456b1dba3ec499da916852dd188d1e04a7
tree6db4787c1913a1df154b01091c940e82f136169c
parent6382ec1aba1b1c7380cb525217c1bd645c4fd41b
path/filepath: replace os.MkdirTemp with T.TempDir

Add the tempDirCanonical function, for tests that need a temporary
directory that does not contain symlinks.

Updates #45402

Change-Id: I3d08ef32ef911331544acce3d7d013b4c3382960
Reviewed-on: https://go-review.googlesource.com/c/go/+/308011
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/path/filepath/match_test.go
src/path/filepath/path_test.go
src/path/filepath/path_windows_test.go