From 4bf261f9e31cd8394df0c24ad4fffbdda3414ba2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 19 Nov 2012 21:56:24 -0800 Subject: [PATCH] exp/types: don't test importing types if using gccgo 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkg/exp/types/gcimporter_test.go b/src/pkg/exp/types/gcimporter_test.go index d6795fae70c..d1cf605fe95 100644 --- a/src/pkg/exp/types/gcimporter_test.go +++ b/src/pkg/exp/types/gcimporter_test.go @@ -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 {