Commit 585717b9 authored by Keith Randall's avatar Keith Randall

cmd/compile: fix path for go tool in test

Fixes #23326

Change-Id: I6abc353ab004aadc6a4cbefbff3198f848640d7f
Reviewed-on: https://go-review.googlesource.com/87036
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 484586c8
...@@ -82,7 +82,7 @@ func runGenTest(t *testing.T, filename, tmpname string, ev ...string) { ...@@ -82,7 +82,7 @@ func runGenTest(t *testing.T, filename, tmpname string, ev ...string) {
stdout.Reset() stdout.Reset()
stderr.Reset() stderr.Reset()
cmd = exec.Command("go", "run", "-gcflags=-d=ssa/check/on", rungo) cmd = exec.Command(gotool, "run", "-gcflags=-d=ssa/check/on", rungo)
cmd.Stdout = &stdout cmd.Stdout = &stdout
cmd.Stderr = &stderr cmd.Stderr = &stderr
cmd.Env = append(cmd.Env, ev...) cmd.Env = append(cmd.Env, ev...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment