diff options
author | Andrew Gerrand <adg@golang.org> | 2013-06-05 11:07:26 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-06-05 11:07:26 +1000 |
commit | 371a3ab28a91d142ea4100fe8f86a26fe300e1b7 (patch) | |
tree | d2e3b8ec2547218dba9e77ba40461d65641b751e | |
parent | ff7cb872a455a370beed530294838ab151e965c6 (diff) | |
download | go-371a3ab28a91d142ea4100fe8f86a26fe300e1b7.tar.gz go-371a3ab28a91d142ea4100fe8f86a26fe300e1b7.zip |
[release-branch.go1.1] test: do not run the test that relies on precise GC on 32-bits
««« 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
-rw-r--r-- | test/fixedbugs/issue5493.go | 6 |
1 files changed, 6 insertions, 0 deletions
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") } } |