Skip to content

Commit 39c476c

Browse files
mewmewbradfitz
authored andcommitted
archive/tar: simplify use of constants in test case.
Replace setsid with c_ISGID since the constant is already defined. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7403048
1 parent eec9614 commit 39c476c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pkg/archive/tar/tar_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func TestFileInfoHeaderDir(t *testing.T) {
4848
if g, e := h.Name, "testdata/"; g != e {
4949
t.Errorf("Name = %q; want %q", g, e)
5050
}
51-
const setsid = 02000 // see golang.org/issue/4867
52-
if g, e := h.Mode&^setsid, int64(fi.Mode().Perm())|c_ISDIR; g != e {
51+
// Ignoring c_ISGID for golang.org/issue/4867
52+
if g, e := h.Mode&^c_ISGID, int64(fi.Mode().Perm())|c_ISDIR; g != e {
5353
t.Errorf("Mode = %#o; want %#o", g, e)
5454
}
5555
if g, e := h.Size, int64(0); g != e {

0 commit comments

Comments
 (0)