]> Cypherpunks repositories - gostls13.git/commit
cmd/pprof: use testenv.Command instead of exec.Command in tests
authorBryan C. Mills <bcmills@google.com>
Tue, 15 Nov 2022 15:47:46 +0000 (10:47 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 15 Nov 2022 20:24:42 +0000 (20:24 +0000)
commitddf78189d47ff97afb76d3b4e47edbf3eb0ee11c
treef5f0a8e53918824f4ba2bac9d903e7f0e2fb7510
parenta68f9113a2d4043ef28d2e4395485ee187e5532d
cmd/pprof: use testenv.Command instead of exec.Command in tests

testenv.Command sets a default timeout based on the test's deadline
and sends SIGQUIT (where supported) in case of a hang.

Change-Id: Iabd114dd23b85da524e7ea8415f2bbf2c54b380f
Reviewed-on: https://go-review.googlesource.com/c/go/+/450709
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>
src/cmd/pprof/pprof_test.go