]> Cypherpunks repositories - gostls13.git/commit
cmd/cover, cmd/covdata: actually delete temp dirs
authorIan Lance Taylor <iant@golang.org>
Fri, 30 Jan 2026 23:52:19 +0000 (15:52 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 2 Feb 2026 20:16:54 +0000 (12:16 -0800)
commit07f7f8ca5202bdcd39216e25b4a5b2c309ea727f
treeaaf801edf37a59f4fdc0830e671f4a895029385c
parent1c9abbdc8e9032cd613bd147c78b166ebacc8a2e
cmd/cover, cmd/covdata: actually delete temp dirs

The code was using defer in TestMain, but was also calling os.Exit,
which meant that the deferred functions did not run.
TestMain does not require calling os.Exit, so stop doing it.

Change-Id: I25ca64c36acf65dae3dc3f46e5fa513b9460a8e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/740781
Reviewed-by: Than McIntosh <thanm@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/covdata/tool_test.go
src/cmd/cover/cover_test.go