]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: retry ETXTBSY errors when running test binaries
authorBryan C. Mills <bcmills@google.com>
Tue, 22 Aug 2023 21:33:50 +0000 (17:33 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 22 Aug 2023 22:09:34 +0000 (22:09 +0000)
commit4dc2564933146efc411efad16b662589306744d1
tree1bfd7e736d6d107f724f45fa1aaaaf1b3558f060
parent52e17c2e4df91b295b23b8d7a2b669123b0da880
cmd/go: retry ETXTBSY errors when running test binaries

An ETXTBSY error when starting a test binary is almost certainly
caused by the race reported in #22315. That race will resolve quickly
on its own, so we should just retry the command instead of reporting a
spurious failure.

Fixes #62221.

Change-Id: I408f3eaa7ab5d7efbc7a2b1c8bea3dbc459fc794
Reviewed-on: https://go-review.googlesource.com/c/go/+/522015
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/go/internal/test/test.go
src/cmd/go/internal/test/test_nonunix.go [new file with mode: 0644]
src/cmd/go/internal/test/test_unix.go [new file with mode: 0644]
src/cmd/go/testdata/script/test_compile_multi_pkg.txt