]> Cypherpunks repositories - gostls13.git/commitdiff
archive/tar: simplify use of constants in test case.
authorRobin Eklind <r.eklind.87@gmail.com>
Sat, 23 Feb 2013 19:39:01 +0000 (11:39 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 23 Feb 2013 19:39:01 +0000 (11:39 -0800)
Replace setsid with c_ISGID since the constant is already defined.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7403048

src/pkg/archive/tar/tar_test.go

index b55cc2c613b97532db66183b05ea7c41e752382b..dd6310313afa8bf6b5b307df3a32ea12c3f6c285 100644 (file)
@@ -48,8 +48,8 @@ func TestFileInfoHeaderDir(t *testing.T) {
        if g, e := h.Name, "testdata/"; g != e {
                t.Errorf("Name = %q; want %q", g, e)
        }
-       const setsid = 02000 // see golang.org/issue/4867
-       if g, e := h.Mode&^setsid, int64(fi.Mode().Perm())|c_ISDIR; g != e {
+       // Ignoring c_ISGID for golang.org/issue/4867
+       if g, e := h.Mode&^c_ISGID, int64(fi.Mode().Perm())|c_ISDIR; g != e {
                t.Errorf("Mode = %#o; want %#o", g, e)
        }
        if g, e := h.Size, int64(0); g != e {