From 0ee0dd6ea86cdfe5cac3522bfd6c4c69f6dbc25f Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Fri, 13 Mar 2015 16:21:50 +1100 Subject: [PATCH] cmd/godoc: skip tests on arm platforms Skip tests on arm platforms. The godoc tests require large amounts of memory, in excess of 700mb in -index mode which none of the arm builders have spare. Because of their requirements the tests can be killed by the test runner leaving stray godoc processes spinning in swap trying to -index. Change-Id: I1544d56e9d9aabbbaac21adeebfb9e2690bd2da5 Reviewed-on: https://go-review.googlesource.com/7540 Reviewed-by: Andrew Gerrand --- cmd/godoc/godoc_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/godoc/godoc_test.go b/cmd/godoc/godoc_test.go index 365a236f..312cfc64 100644 --- a/cmd/godoc/godoc_test.go +++ b/cmd/godoc/godoc_test.go @@ -70,6 +70,9 @@ var godocTests = []struct { // TODO(adonovan): opt: do this at most once, and do the cleanup // exactly once. How though? There's no atexit. func buildGodoc(t *testing.T) (bin string, cleanup func()) { + if runtime.GOARCH == "arm" { + t.Skip("skipping test on arm platforms; too slow") + } tmp, err := ioutil.TempDir("", "godoc-regtest-") if err != nil { t.Fatal(err)