Skip to content

Commit 53c91f9

Browse files
Bryan C. Millsgopherbot
Bryan C. Mills
authored andcommitted
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 <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent d12fe60 commit 53c91f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/executable_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func init() {
8989
}
9090

9191
func TestExecutableDeleted(t *testing.T) {
92-
testenv.MustHaveExec(t)
92+
testenv.MustHaveGoBuild(t)
9393
switch runtime.GOOS {
9494
case "windows", "plan9":
9595
t.Skipf("%v does not support deleting running binary", runtime.GOOS)

0 commit comments

Comments
 (0)