diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 89b27b90b733f..d95714deb922a 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -2117,26 +2117,6 @@ func TestGoBuildGOPATHOrderBroken(t *testing.T) { tg.run("install", "-x", "bar") } -func TestGoBuildARM(t *testing.T) { - if testing.Short() { - t.Skip("skipping cross-compile in short mode") - } - - tg := testgo(t) - defer tg.cleanup() - - tg.makeTempdir() - tg.cd(tg.path(".")) - - tg.setenv("GOARCH", "arm") - tg.setenv("GOOS", "linux") - tg.setenv("GOARM", "5") - tg.tempFile("hello.go", `package main - func main() {}`) - tg.run("build", "hello.go") - tg.grepStderrNot("unable to find math.a", "did not build math.a correctly") -} - // For issue 14337. func TestParallelTest(t *testing.T) { tooSlow(t) diff --git a/src/cmd/go/testdata/script/build_arm.txt b/src/cmd/go/testdata/script/build_arm.txt new file mode 100644 index 0000000000000..ff2a36456e406 --- /dev/null +++ b/src/cmd/go/testdata/script/build_arm.txt @@ -0,0 +1,13 @@ +[short] skip 'skipping cross-compile in short mode' + +env GOARCH=arm +env GOOS=linux +env GOARM=5 + +go build hello.go +! stderr 'unable to find math.a' + +-- hello.go -- +package main + +func main() {} \ No newline at end of file