aboutsummaryrefslogtreecommitdiff
path: root/src/internal/godebug/godebug_test.go
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2025-02-24 10:21:01 +0100
committerQuim Muntal <quimmuntal@gmail.com>2025-02-25 12:01:35 -0800
commitb47ebb229fba8748366d52b6894a572da7c3ccfd (patch)
tree86916cc1baceb71747c876e40a1b41d10e6add2d /src/internal/godebug/godebug_test.go
parent00e793cfe36de845501ea302645094149ed63e91 (diff)
downloadgo-b47ebb229fba8748366d52b6894a572da7c3ccfd.tar.xz
all: use testenv.GoToolPath instead of hardcoding go
Change-Id: I84ec73d3ddef913a87cb9b48147c44ac3e7c8a8d Reviewed-on: https://go-review.googlesource.com/c/go/+/651957 Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/internal/godebug/godebug_test.go')
-rw-r--r--src/internal/godebug/godebug_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/godebug/godebug_test.go b/src/internal/godebug/godebug_test.go
index fbabc657fe..60c35a9619 100644
--- a/src/internal/godebug/godebug_test.go
+++ b/src/internal/godebug/godebug_test.go
@@ -101,8 +101,8 @@ func TestPanicNilRace(t *testing.T) {
}
func TestCmdBisect(t *testing.T) {
- testenv.MustHaveGoBuild(t)
- out, err := exec.Command("go", "run", "cmd/vendor/golang.org/x/tools/cmd/bisect", "GODEBUG=buggy=1#PATTERN", os.Args[0], "-test.run=^TestBisectTestCase$").CombinedOutput()
+ testenv.MustHaveGoRun(t)
+ out, err := exec.Command(testenv.GoToolPath(t), "run", "cmd/vendor/golang.org/x/tools/cmd/bisect", "GODEBUG=buggy=1#PATTERN", os.Args[0], "-test.run=^TestBisectTestCase$").CombinedOutput()
if err != nil {
t.Fatalf("exec bisect: %v\n%s", err, out)
}