]> Cypherpunks repositories - gostls13.git/commitdiff
test: disable a couple of precise GC tests for gccgo
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Dec 2013 01:13:27 +0000 (17:13 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 13 Dec 2013 01:13:27 +0000 (17:13 -0800)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/41610043

test/deferfin.go
test/fixedbugs/issue5493.go

index f9a74eba9c6e7428ce917fbc605b4068d95f1aa8..fa5a93354dce57c851dac4d49450c72ac56bef07 100644 (file)
@@ -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
index affc07b58803c1aef668bb3c069364d04489d557..2ee0398af2c894f4939f594a758eadb9a82d71d5 100644 (file)
@@ -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