]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: use GoToolPath in TestDeps
authorIan Lance Taylor <iant@golang.org>
Tue, 3 Sep 2019 17:30:24 +0000 (10:30 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 3 Sep 2019 19:54:33 +0000 (19:54 +0000)
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>
src/cmd/compile/internal/gc/dep_test.go

index 7fc9be5e64f207129ff8b17b33faef91ca1f5140..c1dac9338652bf186ac42d7d0eb6d6cdd5dff132 100644 (file)
@@ -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)
        }