go.tools/go/loader: disable test case to fix build
TBR=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/139650043
This commit is contained in:
parent
f04d2c5c34
commit
ab25303a78
|
|
@ -116,10 +116,14 @@ func TestStdlib(t *testing.T) {
|
||||||
|
|
||||||
func TestCgoOption(t *testing.T) {
|
func TestCgoOption(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
// on these systems, the net and os/user packages don't use cgo.
|
// On these systems, the net and os/user packages don't use cgo.
|
||||||
case "plan9", "solaris", "windows":
|
case "plan9", "solaris", "windows":
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// For linux-amd64-nocgo, cgo is not used.
|
||||||
|
if runtime.GOOS == "linux" && runtime.GOARCH == "amd64" && !build.Default.CgoEnabled {
|
||||||
|
return
|
||||||
|
}
|
||||||
// Test that we can load cgo-using packages with
|
// Test that we can load cgo-using packages with
|
||||||
// CGO_ENABLED=[01], which causes go/build to select pure
|
// CGO_ENABLED=[01], which causes go/build to select pure
|
||||||
// Go/native implementations, respectively, based on build
|
// Go/native implementations, respectively, based on build
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue