]> Cypherpunks repositories - gostls13.git/commitdiff
go/internal/gccgoimporter: test fix for older gccgo versions
authorThan McIntosh <thanm@google.com>
Thu, 13 Dec 2018 13:17:09 +0000 (08:17 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 13 Dec 2018 21:01:04 +0000 (21:01 +0000)
Avoid running the test for issue 29198 if the available copy of gccgo
is too old (needs to support context package). Fixes a failure on the
solaris builder.

Updates #29198.

Change-Id: I2b1b3438f4ac105432f30078fbef78e24f2077cd
Reviewed-on: https://go-review.googlesource.com/c/153831
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/internal/gccgoimporter/importer_test.go

index f678ddc3b59a08cedd5c01e3af43b31718151919..7a21c5f2f484654f08c7eb72ed71d2b9eaca7862 100644 (file)
@@ -159,7 +159,7 @@ func TestObjImporter(t *testing.T) {
 
        for _, test := range importerTests {
                // Support for type aliases was added in GCC 7.
-               if test.pkgpath == "aliases" || test.pkgpath == "issue27856" {
+               if test.pkgpath == "aliases" || test.pkgpath == "issue27856" || test.pkgpath == "issue29198" {
                        if major < 7 {
                                t.Logf("skipping %q: not supported before gccgo version 7", test.pkgpath)
                                continue