]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: disable gc test on non-amd64 systems
authorAndrew Gerrand <adg@golang.org>
Thu, 17 May 2012 01:34:28 +0000 (11:34 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 17 May 2012 01:34:28 +0000 (11:34 +1000)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6210062

src/pkg/runtime/gc_test.go

index 7770e499ad351e1da386312cd365302a11ac6bbf..fdbe13ebbe5d896fd188bc3ccd359f2cc4042435 100644 (file)
@@ -10,6 +10,11 @@ import (
 )
 
 func TestGcSys(t *testing.T) {
+       if runtime.GOARCH != "amd64" {
+               // TODO(adg): remove this when precise gc is implemented
+               t.Logf("skipping on non-amd64 systems")
+               return
+       }
        memstats := new(runtime.MemStats)
        runtime.GC()
        runtime.ReadMemStats(memstats)