aboutsummaryrefslogtreecommitdiff
path: root/src/os/readfrom_linux_test.go
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/os/readfrom_linux_test.go
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/os/readfrom_linux_test.go')
-rw-r--r--src/os/readfrom_linux_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os/readfrom_linux_test.go b/src/os/readfrom_linux_test.go
index cecaed5214..b6f5cb7034 100644
--- a/src/os/readfrom_linux_test.go
+++ b/src/os/readfrom_linux_test.go
@@ -249,14 +249,15 @@ func newCopyFileRangeTest(t *testing.T, size int64) (dst, src *File, data []byte
t.Helper()
hook = hookCopyFileRange(t)
+ tmp := t.TempDir()
- src, err := Create(filepath.Join(t.TempDir(), "src"))
+ src, err := Create(filepath.Join(tmp, "src"))
if err != nil {
t.Fatal(err)
}
t.Cleanup(func() { src.Close() })
- dst, err = Create(filepath.Join(t.TempDir(), "dst"))
+ dst, err = Create(filepath.Join(tmp, "dst"))
if err != nil {
t.Fatal(err)
}