]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fail tests immediately if they attempt to create a tempfile within GOROOT
authorBryan C. Mills <bcmills@google.com>
Mon, 18 Nov 2019 14:01:44 +0000 (09:01 -0500)
committerBryan C. Mills <bcmills@google.com>
Tue, 19 Nov 2019 01:03:25 +0000 (01:03 +0000)
commitc726361fff936c3483bea3cc04fecab145a55caa
tree6747943fd09d321b28b411c5076bb97296390749
parent9bba63bbbe43ee6370367220feb46717ec50ea9c
cmd/go: fail tests immediately if they attempt to create a tempfile within GOROOT

This will help to detect regressions of #28387 when running
'go test cmd/go' in a writable GOROOT.

Updates #28387
Updates #30316

Change-Id: I551e044111535404688b1a76e63163dfcb41bb5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/207701
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go