mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: use testing.GoToolPath instead of "go"
This change makes sure that tests are run with the correct version of the go tool. The correct version is the one that we invoked with "go test", not the one that is first in our path. Fixes #16577 Change-Id: If22c8f8c3ec9e7c35d094362873819f2fbb8559b Reviewed-on: https://go-review.googlesource.com/28089 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
be23e98e06
commit
842b05832f
26 changed files with 55 additions and 55 deletions
|
|
@ -47,7 +47,7 @@ func TestCrashDumpsAllThreads(t *testing.T) {
|
|||
t.Fatalf("failed to create Go file: %v", err)
|
||||
}
|
||||
|
||||
cmd := exec.Command("go", "build", "-o", "a.exe")
|
||||
cmd := exec.Command(testenv.GoToolPath(t), "build", "-o", "a.exe")
|
||||
cmd.Dir = dir
|
||||
out, err := testEnv(cmd).CombinedOutput()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue