summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-09-03 10:30:24 -0700
committerIan Lance Taylor <iant@golang.org>2019-09-03 19:54:33 +0000
commitaee084b3caf47f87b74e8bad2e3b7265271e377c (patch)
treeff780fe9a8189d2a938345871b4f895a468b4c05 /src
parent7c90e2cbda677a1a9993403df192f31fb011a112 (diff)
downloadgo-git-aee084b3caf47f87b74e8bad2e3b7265271e377c.tar.gz
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 <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/gc/dep_test.go3
1 files changed, 1 insertions, 2 deletions
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)
}