]> Cypherpunks.ru repositories - gostls13.git/commit
test: fix timeout code for invoking compiler
authorRuss Cox <rsc@golang.org>
Thu, 7 Jan 2021 16:22:42 +0000 (11:22 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 8 Jan 2021 17:14:00 +0000 (17:14 +0000)
commitfefad1dc856d66c024a94d3421fc52ff326fe970
tree3bbadbdfad54ed67bef30a63dce47e2018fba49e
parent6728118e0ae2658e758a64fe86e2e1a3aa55268c
test: fix timeout code for invoking compiler

When running go tool compile,
go tool is running compile as a subprocess.
Killing go tool with Process.Kill leaves the subprocess behind.
Send an interrupt signal first, which it can forward on
to the compile subprocess.

Also report the timeout in errorcheck -t.

Change-Id: I7ae0029bbe543ed7e60e0fea790dd0739d10bcaa
Reviewed-on: https://go-review.googlesource.com/c/go/+/282313
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
test/run.go