From: Dave Cheney Date: Thu, 26 Feb 2015 21:06:58 +0000 (+1100) Subject: runtime/debug: fix nacl build X-Git-Tag: go1.5beta1~1841 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3a3c9d6d66fb50a9cd6f475a0ee7301ca50259e4;p=gostls13.git runtime/debug: fix nacl build Disable the test properly on nacl systems, tested on nacl/amd64p32. Change-Id: Iffe210be4f9c426bfc47f2dd3a8f0c6b5a398cc3 Reviewed-on: https://go-review.googlesource.com/6093 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/runtime/debug/garbage_test.go b/src/runtime/debug/garbage_test.go index a392614b1f..d263626641 100644 --- a/src/runtime/debug/garbage_test.go +++ b/src/runtime/debug/garbage_test.go @@ -88,8 +88,7 @@ func TestReadGCStats(t *testing.T) { var big = make([]byte, 1<<20) func TestFreeOSMemory(t *testing.T) { - switch runtime.GOARCH { - case "ppc64", "ppc64le", "nacl": + if runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le" || runtime.GOOS == "nacl" { t.Skip("issue 9993; scavenger temporarily disabled on systems with 64k pages") } var ms1, ms2 runtime.MemStats