mirror of
https://github.com/golang/go
synced 2024-11-25 06:07:58 -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:
parent
4d118835ab
commit
86327cdcf5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user