From: Ian Lance Taylor Date: Fri, 13 Dec 2013 01:13:27 +0000 (-0800) Subject: test: disable a couple of precise GC tests for gccgo X-Git-Tag: go1.3beta1~1251 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d12b08d228aff8b62d6a90297689856bf67890f7;p=gostls13.git test: disable a couple of precise GC tests for gccgo R=golang-dev, rsc CC=golang-dev https://golang.org/cl/41610043 --- diff --git a/test/deferfin.go b/test/deferfin.go index f9a74eba9c..fa5a93354d 100644 --- a/test/deferfin.go +++ b/test/deferfin.go @@ -23,6 +23,10 @@ func main() { if runtime.GOARCH != "amd64" { return } + // Likewise for gccgo. + if runtime.Compiler == "gccgo" { + return + } N := 10 count := int32(N) var wg sync.WaitGroup diff --git a/test/fixedbugs/issue5493.go b/test/fixedbugs/issue5493.go index affc07b588..2ee0398af2 100644 --- a/test/fixedbugs/issue5493.go +++ b/test/fixedbugs/issue5493.go @@ -31,9 +31,10 @@ func run() error { } func main() { - // Does not work on 32-bits due to partially conservative GC. + // Does not work on 32-bits, or with gccgo, due to partially + // conservative GC. // Try to enable when we have fully precise GC. - if runtime.GOARCH != "amd64" { + if runtime.GOARCH != "amd64" || runtime.Compiler == "gccgo" { return } count = N