go/src/runtime/coverage
Than McIntosh fadd77c05b runtime/coverage: add missing file close in test support helper
The processPod() helper (invoked by processCoverTestDir, which is in
turn called by _testmain.go) was opening and reading counter data
files, but never closing them. Add a call to close the files after
they have been read.

Fixes #57407.

Change-Id: If9a489f92e4bab72c5b2df8697e14420a6f7b8f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/458835
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-12-21 20:18:10 +00:00
..
testdata runtime/coverage: revise/shorten function names 2022-10-05 14:59:05 +00:00
apis.go runtime/coverage: revise/shorten function names 2022-10-05 14:59:05 +00:00
dummy.s
emit.go runtime/coverage: use atomic access for counter reads 2022-10-04 18:49:20 +00:00
emitdata_test.go cmd/{go,cover,covdata}: fix 'package main' inconsistent handling 2022-12-08 18:29:31 +00:00
hooks.go
testsupport.go runtime/coverage: add missing file close in test support helper 2022-12-21 20:18:10 +00:00
ts_test.go