From: Bryan C. Mills Date: Wed, 27 Feb 2019 17:25:59 +0000 (-0500) Subject: cmd/link: do not close over the loop variable in testDWARF X-Git-Tag: go1.13beta1~1332 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fa8a3f3080bdc59d18f3c093e8239bf34e976906;p=gostls13.git cmd/link: do not close over the loop variable in testDWARF Fixes #30429 Updates #16520 Updates #20733 Change-Id: Iae41f06c09aaaed500936f5496d90cefbe8293e4 Reviewed-on: https://go-review.googlesource.com/c/164119 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot Reviewed-by: Cherry Zhang Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/link/dwarf_test.go b/src/cmd/link/dwarf_test.go index 710457aeb9..880b2ced6d 100644 --- a/src/cmd/link/dwarf_test.go +++ b/src/cmd/link/dwarf_test.go @@ -44,6 +44,7 @@ func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string) defer os.RemoveAll(tmpDir) for _, prog := range []string{"testprog", "testprogcgo"} { + prog := prog t.Run(prog, func(t *testing.T) { t.Parallel()