]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.1] test: do not run the test that relies on precise GC on 32...
authorAndrew Gerrand <adg@golang.org>
Wed, 5 Jun 2013 01:07:26 +0000 (11:07 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 5 Jun 2013 01:07:26 +0000 (11:07 +1000)
««« CL 9573043 / c0f8999bd970
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
»»»

R=dvyukov, iant, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/10032043

test/fixedbugs/issue5493.go

index fe571bc085638a337de5b2847818cd30701057b7..827281bdca42e1ff44e684851b892f7bbcebafce 100644 (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")
        }
 }