Commit 68f42ea2 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

archive/tar: fix windows test failure

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6249052
parent c6ce4482
......@@ -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 {
......
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