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:
parent
c60d048594
commit
a17544f283
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user