]> Cypherpunks repositories - gostls13.git/commitdiff
archive/tar: fix windows test failure
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 24 May 2012 21:32:18 +0000 (14:32 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 24 May 2012 21:32:18 +0000 (14:32 -0700)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6249052

src/pkg/archive/tar/tar_test.go

index d3d2a6285254bb78f171f2b0d1bab67eb9da74f0..0adc17900339c90fddadb865c3c89f5fc832bad3 100644 (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 {