From: Dmitriy Vyukov Date: Mon, 20 May 2013 17:53:16 +0000 (+0400) Subject: test: do not run the test that relies on precise GC on 32-bits X-Git-Tag: go1.2rc2~1468 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=910bd157c94ce893ec4f092c065954c8842ac6f4;p=gostls13.git test: do not run the test that relies on precise GC on 32-bits Currently most of the 32-bit builder are broken. Fixes #5516. R=golang-dev, dave, iant CC=golang-dev https://golang.org/cl/9573043 --- diff --git a/test/fixedbugs/issue5493.go b/test/fixedbugs/issue5493.go index fe571bc085..827281bdca 100644 --- a/test/fixedbugs/issue5493.go +++ b/test/fixedbugs/issue5493.go @@ -31,6 +31,11 @@ func run() error { } func main() { + // Does not work on 32-bits due to partially conservative GC. + // Try to enable when we have fully precise GC. + if runtime.GOARCH != "amd64" { + return + } count = N var wg sync.WaitGroup wg.Add(N) @@ -46,6 +51,7 @@ func main() { runtime.GC() } if count != 0 { + println(count, "out of", N, "finalizer are called") panic("not all finalizers are called") } }