]> Cypherpunks repositories - gostls13.git/commit
cmd/link: reliably remove temporary directory in testDwarf
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2019 20:55:43 +0000 (12:55 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 2 Mar 2019 04:25:26 +0000 (04:25 +0000)
commit44dc661453a59587a81265c17f7c469b60e9059a
treee9528f33cccdb28e32f1244832548a3b4eb51c94
parent3415b3556b47c69982d47fb3f4735ec05fecdda1
cmd/link: reliably remove temporary directory in testDwarf

We were using t.Parallel in a subtest, which meant that the main test
would not wait for the subtest, so the main test would delete the
temporary directory before the subtest used it. The subtest worked
because "go build -o /tmp/x/y/p.exe p" creates /tmp/x/y as needed.

Updates #30500

Change-Id: I5904ecac748d15ded4cb609f049fa548b8916a0e
Reviewed-on: https://go-review.googlesource.com/c/164857
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/link/dwarf_test.go