Commit 2cda46dc authored by Russ Cox's avatar Russ Cox

fix TestRemoveAll again (tested as root this time).

Fixes #22.

R=r
https://golang.org/cl/154069
parent 2643f742
......@@ -134,8 +134,6 @@ func TestRemoveAll(t *testing.T) {
if perr.Path != dpath {
t.Fatalf("RemoveAll %q failed at %q not %q", path, perr.Path, dpath)
}
}
if err = Chmod(dpath, 0777); err != nil {
t.Fatalf("Chmod %q 0777: %s", dpath, err)
}
......@@ -144,6 +142,7 @@ func TestRemoveAll(t *testing.T) {
t.Fatalf("Lstat %q succeeded after partial RemoveAll", s)
}
}
}
if err = RemoveAll(path); err != nil {
t.Fatalf("RemoveAll %q after partial RemoveAll: %s", path, err)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment