]> Cypherpunks repositories - gostls13.git/commit
cmd/go: avoid internal errors on "go test -testwork"
authorThan McIntosh <thanm@google.com>
Mon, 26 Sep 2022 13:17:23 +0000 (09:17 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 26 Sep 2022 14:16:42 +0000 (14:16 +0000)
commit1e91ffc897efb1ed298753c08f086fbc8f725025
tree79e954fc5a89e12ad5e812ad926f04277a94f11f
parenta0441c7ae3dea57a0553c9ea77e184c34b7da40f
cmd/go: avoid internal errors on "go test -testwork"

Fix up the package test harness to avoid errors of the form

  go_test.go:NNN: internal testsuite error: path(".") with no tempdir

when the "-testwork" flag is passed when running "go test".

Fixes #55874.

Change-Id: I76cc39902f51a62cb4cd0da8794b97d620fb4873
Reviewed-on: https://go-review.googlesource.com/c/go/+/434455
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/go_test.go