]> Cypherpunks repositories - gostls13.git/commit
math,os,os/*: use testenv.Executable
authorKir Kolyshkin <kolyshkin@gmail.com>
Fri, 30 Aug 2024 02:51:22 +0000 (19:51 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 3 Sep 2024 20:11:30 +0000 (20:11 +0000)
commitc3f346a485f2fa97a7bdee82d587419b3823a1ba
treec085a5dbe2fe5fb250b39d9ea56cc4608b6cee67
parent76a42d74356e3c5bee0851c99665b21bf29f0c27
math,os,os/*: use testenv.Executable

As some callers don't have a testing context, modify testenv.Executable
to accept nil (similar to how testenv.GOROOT works).

Change-Id: I39112a7869933785a26b5cb6520055b3cc42b847
Reviewed-on: https://go-review.googlesource.com/c/go/+/609835
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/internal/testenv/exec.go
src/math/rand/default_test.go
src/os/exec/exec_test.go
src/os/exec/lp_windows_test.go
src/os/executable_test.go
src/os/fifo_test.go
src/os/os_test.go
src/os/os_windows_test.go
src/os/user/user_windows_test.go