1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:54:42 -07:00

fix bug in os_test.go checkMode

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/872043
This commit is contained in:
Alex Brainman 2010-04-08 21:16:05 -07:00 committed by Rob Pike
parent c60d048594
commit a17544f283

View File

@ -363,7 +363,7 @@ func checkMode(t *testing.T, path string, mode uint32) {
t.Fatalf("Stat %q (looking for mode %#o): %s", path, mode, err)
}
if dir.Mode&0777 != mode {
t.Errorf("Stat %q: mode %#o want %#o", path, dir.Mode, 0777)
t.Errorf("Stat %q: mode %#o want %#o", path, dir.Mode, mode)
}
}