Navigation Menu

Skip to content

Commit

Permalink
cmd/compile/internal/gc: use GoToolPath in TestDeps
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ianlancetaylor committed Sep 3, 2019
1 parent 7c90e2c commit aee084b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd/compile/internal/gc/dep_test.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit aee084b

Please sign in to comment.