1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
|
Disable tests that don't work when using gccgo.
--- a/go/buildutil/util_test.go
+++ b/go/buildutil/util_test.go
@@ -5,6 +5,7 @@
// Incomplete source tree on Android.
// +build !android
+// +build !gccgo
package buildutil_test
--- a/go/gcimporter15/bexport_test.go
+++ b/go/gcimporter15/bexport_test.go
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// +build go1.6
+// +build !gccgo
package gcimporter_test
--- a/cmd/guru/guru_test.go
+++ b/cmd/guru/guru_test.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !gccgo
+
package main_test
// This file defines a test framework for guru queries.
--- a/cmd/stringer/endtoend_test.go
+++ b/cmd/stringer/endtoend_test.go
@@ -5,6 +5,7 @@
// go command is not available on android
// +build !android
+// +build !gccgo
package main
--- a/cmd/stringer/golden_test.go
+++ b/cmd/stringer/golden_test.go
@@ -7,6 +7,8 @@
// it provides a way to look at the generated code without having
// to execute the print statements in one's head.
+// +build !gccgo
+
package main
import (
--- a/go/buildutil/allpackages_test.go
+++ b/go/buildutil/allpackages_test.go
@@ -5,6 +5,7 @@
// Incomplete source tree on Android.
// +build !android
+// +build !gccgo
package buildutil_test
--- a/go/loader/loader_test.go
+++ b/go/loader/loader_test.go
@@ -15,6 +15,7 @@
"go/build"
"path/filepath"
"reflect"
+ "runtime"
"sort"
"strings"
"sync"
@@ -111,6 +112,9 @@
}
func TestLoad_MissingInitialPackage(t *testing.T) {
+ if runtime.Compiler == "gccgo" {
+ t.Skip("Test disabled on gccgo.")
+ }
var conf loader.Config
conf.Import("nosuchpkg")
conf.Import("errors")
@@ -129,6 +133,9 @@
}
func TestLoad_MissingInitialPackage_AllowErrors(t *testing.T) {
+ if runtime.Compiler == "gccgo" {
+ t.Skip("Test disabled on gccgo.")
+ }
var conf loader.Config
conf.AllowErrors = true
conf.Import("nosuchpkg")
@@ -253,6 +260,9 @@
}
func TestLoad_FromImports_Success(t *testing.T) {
+ if runtime.Compiler == "gccgo" {
+ t.Skip("Test disabled on gccgo.")
+ }
var conf loader.Config
conf.ImportWithTests("fmt")
conf.ImportWithTests("errors")
--- a/go/pointer/example_test.go
+++ b/go/pointer/example_test.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !gccgo
+
package pointer_test
import (
--- a/go/ssa/interp/interp_test.go
+++ b/go/ssa/interp/interp_test.go
@@ -5,6 +5,7 @@
// +build go1.5
// +build !android,!windows,!plan9
+// +build !gccgo
package interp_test
--- a/go/ssa/ssautil/load_test.go
+++ b/go/ssa/ssautil/load_test.go
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// +build go1.5
+// +build !gccgo
package ssautil_test
--- a/refactor/eg/eg_test.go
+++ b/refactor/eg/eg_test.go
@@ -7,6 +7,7 @@
// No testdata on Android.
// +build !android
+// +build !gccgo
package eg_test
--- a/refactor/importgraph/graph_test.go
+++ b/refactor/importgraph/graph_test.go
@@ -5,6 +5,7 @@
// Incomplete std lib sources on Android.
// +build !android
+// +build !gccgo
package importgraph_test
--- a/refactor/rename/rename_test.go
+++ b/refactor/rename/rename_test.go
@@ -1127,6 +1127,9 @@
}
func TestDiff(t *testing.T) {
+ if runtime.Compiler == "gccgo" {
+ t.Skip("Test disabled on gccgo.")
+ }
if runtime.GOOS == "windows" {
t.Skipf("diff tool non-existent for windows on builders")
}
--- a/go/loader/example_test.go
+++ b/go/loader/example_test.go
@@ -4,6 +4,7 @@
// +build go1.6
// +build !windows
+// +build !gccgo
package loader_test
--- a/go/loader/example15_test.go
+++ b/go/loader/example15_test.go
@@ -4,6 +4,7 @@
// +build go1.5,!go1.6
// +build !windows
+// +build !gccgo
package loader_test
--- a/go/ssa/source_test.go
+++ b/go/ssa/source_test.go
@@ -28,6 +28,9 @@
)
func TestObjValueLookup(t *testing.T) {
+ if runtime.Compiler == "gccgo" {
+ t.Skip("Test disabled on gccgo.")
+ }
if runtime.GOOS == "android" {
t.Skipf("no testdata directory on %s", runtime.GOOS)
}
@@ -196,6 +199,9 @@
// Ensure that, in debug mode, we can determine the ssa.Value
// corresponding to every ast.Expr.
func TestValueForExpr(t *testing.T) {
+ if runtime.Compiler == "gccgo" {
+ t.Skip("Test disabled on gccgo.")
+ }
if runtime.GOOS == "android" {
t.Skipf("no testdata dir on %s", runtime.GOOS)
}
--- a/go/ssa/builder_test.go
+++ b/go/ssa/builder_test.go
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// +build go1.5
+// +build !gccgo
package ssa_test
--- a/go/ssa/example_test.go
+++ b/go/ssa/example_test.go
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// +build go1.5
+// +build !gccgo
package ssa_test
--- a/go/ssa/testmain_test.go
+++ b/go/ssa/testmain_test.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !gccgo
+
package ssa_test
// Tests of FindTests. CreateTestMainPackage is tested via the interpreter.
|