]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.21] 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>
Wed, 30 Aug 2023 21:32:23 +0000 (21:32 +0000)
commit0a9582163c3392ea0e51cadec9ee5fc5c46cfeee
treeec3c2b7c97704ae86002eca5555213cd5730c4fc
parent91a4e74b98179f63a27dbff1ad68ddd0ed64363a
[release-branch.go1.21] 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 #62222.
Updates #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>
(cherry picked from commit 4dc2564933146efc411efad16b662589306744d1)
Reviewed-on: https://go-review.googlesource.com/c/go/+/522176
Auto-Submit: Dmitri Shuralyov <dmitshur@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