]> Cypherpunks repositories - gostls13.git/commitdiff
exp/types: don't test importing types if using gccgo
authorIan Lance Taylor <iant@golang.org>
Tue, 20 Nov 2012 05:56:24 +0000 (21:56 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Nov 2012 05:56:24 +0000 (21:56 -0800)
The exp/types packages does not support the gccgo export data
format.  At some point it should, but not yet.

R=gri, bradfitz, r, iant, dsymonds
CC=golang-dev
https://golang.org/cl/6854068

src/pkg/exp/types/gcimporter_test.go

index d6795fae70cf599f14013ad26e326e04d9520cd4..d1cf605fe950dd29e25e2d5f7693d1358e5b6596 100644 (file)
@@ -127,6 +127,10 @@ var importedObjectTests = []struct {
 }
 
 func TestGcImportedTypes(t *testing.T) {
+       // This package does not yet know how to read gccgo export data.
+       if runtime.Compiler == "gccgo" {
+               return
+       }
        for _, test := range importedObjectTests {
                s := strings.Split(test.name, ".")
                if len(s) != 2 {