Skip to content

Commit

Permalink
use t.TestDir instead of os.Mkdirtemp
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed Jul 28, 2023
1 parent fd834bd commit 2eb7e31
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cmd/internal/obj/x86/asm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,7 @@ func TestRegIndex(t *testing.T) {
// code can be aligned to the alignment value.
func TestPCALIGN(t *testing.T) {
testenv.MustHaveGoBuild(t)
dir, err := os.MkdirTemp("", "testpcalign")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(dir)
dir := t.TempDir()
tmpfile := filepath.Join(dir, "test.s")
tmpout := filepath.Join(dir, "test.o")

Expand Down

0 comments on commit 2eb7e31

Please sign in to comment.