mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
cmd/link: close file in tempdir so Windows can delete it
Fixes #73098 Change-Id: I9f5570903071b15df9e4f8a1820414f305db9d35 Reviewed-on: https://go-review.googlesource.com/c/go/+/661915 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
b9cbb65384
commit
c6a1dc4729
@ -1564,6 +1564,7 @@ func TestLinknameBSS(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("fail to open executable: %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
syms, err := f.Symbols()
|
||||
if err != nil {
|
||||
t.Fatalf("fail to get symbols: %v", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user