Skip to content

Commit

Permalink
cmd/addr2line: use t.TempDir
Browse files Browse the repository at this point in the history
Change-Id: I62f1c51be89e9c2f22cc7b0b2e554ffa3da907ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/611038
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
kolyshkin authored and gopherbot committed Sep 6, 2024
1 parent 86d7489 commit 2be9309
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cmd/addr2line/addr2line_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ func testAddr2Line(t *testing.T, dbgExePath, addr string) {
func TestAddr2Line(t *testing.T) {
testenv.MustHaveGoBuild(t)

tmpDir, err := os.MkdirTemp("", "TestAddr2Line")
if err != nil {
t.Fatal("TempDir failed: ", err)
}
defer os.RemoveAll(tmpDir)
tmpDir := t.TempDir()

// Build copy of test binary with debug symbols,
// since the one running now may not have them.
Expand Down

0 comments on commit 2be9309

Please sign in to comment.