@@ -2642,45 +2642,6 @@ func TestNeedVersion(t *testing.T) {
2642
2642
tg .grepStderr ("compile" , "does not match go tool version" )
2643
2643
}
2644
2644
2645
- // Issue 9737: verify that GOARM and GO386 affect the computed build ID.
2646
- func TestBuildIDContainsArchModeEnv (t * testing.T ) {
2647
- if testing .Short () {
2648
- t .Skip ("skipping in short mode" )
2649
- }
2650
-
2651
- var tg * testgoData
2652
- testWith := func (before , after func ()) func (* testing.T ) {
2653
- return func (t * testing.T ) {
2654
- tg = testgo (t )
2655
- defer tg .cleanup ()
2656
- tg .tempFile ("src/mycmd/x.go" , `package main
2657
- func main() {}` )
2658
- tg .setenv ("GOPATH" , tg .path ("." ))
2659
-
2660
- tg .cd (tg .path ("src/mycmd" ))
2661
- tg .setenv ("GOOS" , "linux" )
2662
- before ()
2663
- tg .run ("install" , "mycmd" )
2664
- after ()
2665
- tg .wantStale ("mycmd" , "stale dependency" , "should be stale after environment variable change" )
2666
- }
2667
- }
2668
-
2669
- t .Run ("386" , testWith (func () {
2670
- tg .setenv ("GOARCH" , "386" )
2671
- tg .setenv ("GO386" , "387" )
2672
- }, func () {
2673
- tg .setenv ("GO386" , "sse2" )
2674
- }))
2675
-
2676
- t .Run ("arm" , testWith (func () {
2677
- tg .setenv ("GOARCH" , "arm" )
2678
- tg .setenv ("GOARM" , "5" )
2679
- }, func () {
2680
- tg .setenv ("GOARM" , "7" )
2681
- }))
2682
- }
2683
-
2684
2645
func TestBuildmodePIE (t * testing.T ) {
2685
2646
if testing .Short () && testenv .Builder () == "" {
2686
2647
t .Skipf ("skipping in -short mode on non-builder" )
0 commit comments