archive/tar: fix windows test failure

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6249052
This commit is contained in:
Brad Fitzpatrick 2012-05-24 14:32:18 -07:00
parent c6ce44822c
commit 68f42ea27e

View file

@ -22,7 +22,7 @@ func TestFileInfoHeader(t *testing.T) {
if g, e := h.Name, "small.txt"; g != e {
t.Errorf("Name = %q; want %q", g, e)
}
if g, e := h.Mode, int64(0644|c_ISREG); g != e {
if g, e := h.Mode, int64(fi.Mode().Perm())|c_ISREG; g != e {
t.Errorf("Mode = %#o; want %#o", g, e)
}
if g, e := h.Size, int64(5); g != e {