]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/debug: fix nacl build
authorDave Cheney <dave@cheney.net>
Thu, 26 Feb 2015 21:06:58 +0000 (08:06 +1100)
committerDave Cheney <dave@cheney.net>
Thu, 26 Feb 2015 21:14:03 +0000 (21:14 +0000)
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 <bradfitz@golang.org>
src/runtime/debug/garbage_test.go

index a392614b1f6eacfb251ccaf6387caf85f14892ad..d263626641ceebe579278f7c7afdeb0aa71134f6 100644 (file)
@@ -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