From: Cherry Mui Date: Tue, 31 Oct 2023 20:26:52 +0000 (-0400) Subject: runtime: use testenv.Command in TestG0StackOverflow X-Git-Tag: go1.22rc1~470 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d2f3a68bf0d492780cc0f0cf2c6d71d59df30d5b;p=gostls13.git runtime: use testenv.Command in TestG0StackOverflow For debugging timeouts. Change-Id: I08dc86ec0264196e5fd54066655e94a9d062ed80 Reviewed-on: https://go-review.googlesource.com/c/go/+/538697 LUCI-TryBot-Result: Go LUCI Reviewed-by: Bryan Mills --- diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go index 7a3b0388d7..8aa01f724d 100644 --- a/src/runtime/crash_test.go +++ b/src/runtime/crash_test.go @@ -797,7 +797,7 @@ func TestG0StackOverflow(t *testing.T) { } if os.Getenv("TEST_G0_STACK_OVERFLOW") != "1" { - cmd := testenv.CleanCmdEnv(exec.Command(os.Args[0], "-test.run=^TestG0StackOverflow$", "-test.v")) + cmd := testenv.CleanCmdEnv(testenv.Command(t, os.Args[0], "-test.run=^TestG0StackOverflow$", "-test.v")) cmd.Env = append(cmd.Env, "TEST_G0_STACK_OVERFLOW=1") out, err := cmd.CombinedOutput() // Don't check err since it's expected to crash.