Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
compress/gzip: skip mtime test when GOROOT doesn't exist
Browse files Browse the repository at this point in the history
Fixes the iOS builders

Change-Id: I5097ca19048381ffb5a4c5ea038b7c4aa18ee4b7
Reviewed-on: https://go-review.googlesource.com/21132
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
Elias Naur committed Mar 25, 2016
1 parent 4e31221 commit 4418929
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compress/gzip/issue14937_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4418929

Please sign in to comment.