From: Ian Lance Taylor Date: Tue, 3 Sep 2019 17:30:24 +0000 (-0700) Subject: cmd/compile/internal/gc: use GoToolPath in TestDeps X-Git-Tag: go1.14beta1~1209 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=aee084b3caf47f87b74e8bad2e3b7265271e377c;p=gostls13.git cmd/compile/internal/gc: use GoToolPath in TestDeps Updates #31563 Fixes #34041 Change-Id: Ib9fdcd2f83d867fd31b42eab3a813f5cef88860e Reviewed-on: https://go-review.googlesource.com/c/go/+/193077 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Dmitri Shuralyov --- diff --git a/src/cmd/compile/internal/gc/dep_test.go b/src/cmd/compile/internal/gc/dep_test.go index 7fc9be5e64..c1dac93386 100644 --- a/src/cmd/compile/internal/gc/dep_test.go +++ b/src/cmd/compile/internal/gc/dep_test.go @@ -12,8 +12,7 @@ import ( ) func TestDeps(t *testing.T) { - testenv.MustHaveGoBuild(t) - out, err := exec.Command("go", "list", "-f", "{{.Deps}}", "cmd/compile/internal/gc").Output() + out, err := exec.Command(testenv.GoToolPath(t), "list", "-f", "{{.Deps}}", "cmd/compile/internal/gc").Output() if err != nil { t.Fatal(err) }