1
0
mirror of https://github.com/golang/go synced 2024-11-26 01:07:57 -07:00

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
This commit is contained in:
Dmitriy Vyukov 2013-05-20 21:53:16 +04:00
parent 27f7427995
commit 910bd157c9

View File

@ -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")
}
}