Commit 3ce9e5a1 authored by Ian Lance Taylor's avatar Ian Lance Taylor

go/internal/gccgoimporter: fix test when using gccgo 4.7

TestInstallationImporter checks that it can read the export data for a
list of known standard library packages. It was failing on the SmartOS
builder which has GCC 4.7 installed. Skip packages that did not exist
in GCC 4.7. Most packages are still there and the missing packages are
fairly simple, so this doesn't really affect test quality.

Updates #29006

Change-Id: If7ae6f83d51d40168a9692acb0b99c9bf21f2a4d
Reviewed-on: https://go-review.googlesource.com/c/152077
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: default avatarThan McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 13aa235a
...@@ -9,6 +9,11 @@ import ( ...@@ -9,6 +9,11 @@ import (
"testing" "testing"
) )
// importablePackages is a list of packages that we verify that we can
// import. This should be all standard library packages in all relevant
// versions of gccgo. Note that since gccgo follows a different release
// cycle, and since different systems have different versions installed,
// we can't use the last-two-versions rule of the gc toolchain.
var importablePackages = [...]string{ var importablePackages = [...]string{
"archive/tar", "archive/tar",
"archive/zip", "archive/zip",
...@@ -55,7 +60,7 @@ var importablePackages = [...]string{ ...@@ -55,7 +60,7 @@ var importablePackages = [...]string{
"encoding/binary", "encoding/binary",
"encoding/csv", "encoding/csv",
"encoding/gob", "encoding/gob",
"encoding", // "encoding", // Added in GCC 4.9.
"encoding/hex", "encoding/hex",
"encoding/json", "encoding/json",
"encoding/pem", "encoding/pem",
...@@ -67,7 +72,7 @@ var importablePackages = [...]string{ ...@@ -67,7 +72,7 @@ var importablePackages = [...]string{
"go/ast", "go/ast",
"go/build", "go/build",
"go/doc", "go/doc",
"go/format", // "go/format", // Added in GCC 4.8.
"go/parser", "go/parser",
"go/printer", "go/printer",
"go/scanner", "go/scanner",
...@@ -80,7 +85,7 @@ var importablePackages = [...]string{ ...@@ -80,7 +85,7 @@ var importablePackages = [...]string{
"html", "html",
"html/template", "html/template",
"image/color", "image/color",
"image/color/palette", // "image/color/palette", // Added in GCC 4.9.
"image/draw", "image/draw",
"image/gif", "image/gif",
"image", "image",
...@@ -99,7 +104,7 @@ var importablePackages = [...]string{ ...@@ -99,7 +104,7 @@ var importablePackages = [...]string{
"mime/multipart", "mime/multipart",
"net", "net",
"net/http/cgi", "net/http/cgi",
"net/http/cookiejar", // "net/http/cookiejar", // Added in GCC 4.8.
"net/http/fcgi", "net/http/fcgi",
"net/http", "net/http",
"net/http/httptest", "net/http/httptest",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment