Commit 39c476cb authored by Robin Eklind's avatar Robin Eklind Committed by Brad Fitzpatrick

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
parent eec96147
......@@ -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 {
......
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