1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:04:44 -07:00

os: TestMkdirAll should not fail to delete _test/_TestMkdirAll_ on Windows

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4515142
This commit is contained in:
Alex Brainman 2011-05-27 09:52:15 +10:00
parent 4d118835ab
commit 86327cdcf5

View File

@ -29,10 +29,11 @@ func TestMkdirAll(t *testing.T) {
// Make file.
fpath := path + "/file"
_, err = Create(fpath)
f, err := Create(fpath)
if err != nil {
t.Fatalf("create %q: %s", fpath, err)
}
defer f.Close()
// Can't make directory named after file.
err = MkdirAll(fpath, 0777)