From: Elias Naur Date: Fri, 25 Mar 2016 10:14:29 +0000 (+0100) Subject: compress/gzip: skip mtime test when GOROOT doesn't exist X-Git-Tag: go1.7beta1~1100 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=44189299bfd98eff20d1d84c0c7ee2310124fe38;p=gostls13.git compress/gzip: skip mtime test when GOROOT doesn't exist Fixes the iOS builders Change-Id: I5097ca19048381ffb5a4c5ea038b7c4aa18ee4b7 Reviewed-on: https://go-review.googlesource.com/21132 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/compress/gzip/issue14937_test.go b/src/compress/gzip/issue14937_test.go index cbce0aaca2..74690c2f47 100644 --- a/src/compress/gzip/issue14937_test.go +++ b/src/compress/gzip/issue14937_test.go @@ -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 {