aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode_test.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2023-08-22 11:32:20 -0400
committerGopher Robot <gobot@golang.org>2023-08-23 19:03:28 +0000
commit738d2d9068492dfb81dc350db005fdd52f2481b6 (patch)
tree828931074e2bdc1fe4a4f5d301ac30a45891ac5e /src/encoding/json/encode_test.go
parentf92741b1d82316db15516b82e3812e262202de40 (diff)
downloadgo-738d2d9068492dfb81dc350db005fdd52f2481b6.tar.xz
os: use testenv.Command and os.Executable in tests
On Unix platforms, testenv.Command sends SIGQUIT to stuck commands before the test times out. For subprocesses that are written in Go, that causes the runtime to dump running goroutines, and in other languages it triggers similar behavior (such as a core dump). If the subprocess is stuck due to a bug (such as #57999), that may help to diagnose it. For #57999. Change-Id: I00f381b8052cbbb1a7eea90e7f102a3f68c842d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/521817 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/encoding/json/encode_test.go')
0 files changed, 0 insertions, 0 deletions