aboutsummaryrefslogtreecommitdiff
path: root/src/math/big
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2020-05-19 15:04:48 -0400
committerBryan C. Mills <bcmills@google.com>2020-05-19 19:55:14 +0000
commit13617380cab47a0cfba74650f1539fb2e72bb0fa (patch)
tree8f8bc9bef335cac6be71bd084e8973aeff426fa6 /src/math/big
parent2dbbc867dbf44f72422d1827d18a2055f9b7b72f (diff)
downloadgo-13617380cab47a0cfba74650f1539fb2e72bb0fa.tar.xz
testing: clean up remaining TempDir issues from CL 231958
Updates #38850 Change-Id: I33f48762f5520eb0c0a841d8ca1ccdd65ecc20c8 Reviewed-on: https://go-review.googlesource.com/c/go/+/234583 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/math/big')
-rw-r--r--src/math/big/link_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/math/big/link_test.go b/src/math/big/link_test.go
index ad4359cee0..2212bd444f 100644
--- a/src/math/big/link_test.go
+++ b/src/math/big/link_test.go
@@ -20,8 +20,9 @@ func TestLinkerGC(t *testing.T) {
t.Skip("skipping in short mode")
}
t.Parallel()
+ tmp := t.TempDir()
goBin := testenv.GoToolPath(t)
- goFile := filepath.Join(t.TempDir(), "x.go")
+ goFile := filepath.Join(tmp, "x.go")
file := []byte(`package main
import _ "math/big"
func main() {}
@@ -30,13 +31,13 @@ func main() {}
t.Fatal(err)
}
cmd := exec.Command(goBin, "build", "-o", "x.exe", "x.go")
- cmd.Dir = t.TempDir()
+ cmd.Dir = tmp
if out, err := cmd.CombinedOutput(); err != nil {
t.Fatalf("compile: %v, %s", err, out)
}
cmd = exec.Command(goBin, "tool", "nm", "x.exe")
- cmd.Dir = t.TempDir()
+ cmd.Dir = tmp
nm, err := cmd.CombinedOutput()
if err != nil {
t.Fatalf("nm: %v, %s", err, nm)