]> Cypherpunks repositories - gostls13.git/commitdiff
compress/gzip: clean up zero-mtimes test
authorCaleb Spare <cespare@gmail.com>
Fri, 25 Mar 2016 17:06:19 +0000 (10:06 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 25 Mar 2016 22:22:11 +0000 (22:22 +0000)
- Fix a typo.
- Skip this test on -short on non-builders.

Change-Id: Id102eceb59451694bf92b618e02ccee6603b6852
Reviewed-on: https://go-review.googlesource.com/21113
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>

src/compress/gzip/issue14937_test.go

index 74690c2f47bcee053d2002762fedc2cc5012268b..432ad16b1c206606f6e25c89d6215fc0f3a4b315 100644 (file)
@@ -1,6 +1,7 @@
 package gzip
 
 import (
+       "internal/testenv"
        "os"
        "path/filepath"
        "runtime"
@@ -9,9 +10,12 @@ import (
        "time"
 )
 
-// Per golang.org/issue/14939, check that every .gz file
+// Per golang.org/issue/14937, check that every .gz file
 // in the tree has a zero mtime.
 func TestGZIPFilesHaveZeroMTimes(t *testing.T) {
+       if testing.Short() && testenv.Builder() == "" {
+               t.Skip("skipping in short mode")
+       }
        var files []string
        err := filepath.Walk(runtime.GOROOT(), func(path string, info os.FileInfo, err error) error {
                if err != nil {