]> Cypherpunks repositories - gostls13.git/commitdiff
compress/gzip: skip mtime test when GOROOT doesn't exist
authorElias Naur <elias.naur@gmail.com>
Fri, 25 Mar 2016 10:14:29 +0000 (11:14 +0100)
committerElias Naur <elias.naur@gmail.com>
Fri, 25 Mar 2016 11:00:05 +0000 (11:00 +0000)
Fixes the iOS builders

Change-Id: I5097ca19048381ffb5a4c5ea038b7c4aa18ee4b7
Reviewed-on: https://go-review.googlesource.com/21132
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/compress/gzip/issue14937_test.go

index cbce0aaca2c48719746329271b59f12c1b74317f..74690c2f47bcee053d2002762fedc2cc5012268b 100644 (file)
@@ -23,6 +23,9 @@ func TestGZIPFilesHaveZeroMTimes(t *testing.T) {
                return nil
        })
        if err != nil {
+               if os.IsNotExist(err) {
+                       t.Skipf("skipping: GOROOT directory not found: %s", runtime.GOROOT())
+               }
                t.Fatal("error collecting list of .gz files in GOROOT: ", err)
        }
        if len(files) == 0 {