aboutsummaryrefslogtreecommitdiff
path: root/src/os/executable_test.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2023-03-10 14:21:01 -0500
committerGopher Robot <gobot@golang.org>2023-03-10 21:27:06 +0000
commit53c91f9205e2b61d972ab1eaf5c9716aabe10306 (patch)
tree63daef83d7e6a572c6accf54d8058576ff465227 /src/os/executable_test.go
parentd12fe60004ae5e4024c8a93f4f7de7183bb61576 (diff)
downloadgo-53c91f9205e2b61d972ab1eaf5c9716aabe10306.tar.xz
os: skip TestExecutableDeleted earlier when 'go build' is not supported
The test unconditionally calls testenv.GoToolPath, which will skip the test anyway. Moving the skip earlier gets this test out of goroutine dumps if the test process fails or times out, making it easier to diagnose failures in the remaining tests. Change-Id: Ibd39546708a83b6f15616b2c4ae7af420e2401f0 Reviewed-on: https://go-review.googlesource.com/c/go/+/475455 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/os/executable_test.go')
-rw-r--r--src/os/executable_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/executable_test.go b/src/os/executable_test.go
index 8d1794d340..c835bb436b 100644
--- a/src/os/executable_test.go
+++ b/src/os/executable_test.go
@@ -89,7 +89,7 @@ func init() {
}
func TestExecutableDeleted(t *testing.T) {
- testenv.MustHaveExec(t)
+ testenv.MustHaveGoBuild(t)
switch runtime.GOOS {
case "windows", "plan9":
t.Skipf("%v does not support deleting running binary", runtime.GOOS)