This test currently leaves two temp files lying around - ensure these
are created in the current working directory (a temp dir) so that they
get cleaned up when the test is complete.
Change-Id: I9a29e24a2cd601de3ab39c421830ee2bcda76516
Reviewed-on: https://go-review.googlesource.com/c/go/+/597317
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
want := "hello gopher"
- a, err := CreateTemp("", "a")
+ a, err := CreateTemp(".", "a")
if err != nil {
t.Fatal(err)
}
a.WriteString(want[:5])
a.Close()
- b, err := CreateTemp("", "b")
+ b, err := CreateTemp(".", "b")
if err != nil {
t.Fatal(err)
}