1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:04:44 -07:00

use t.TestDir instead of os.Mkdirtemp

This commit is contained in:
Mauri de Souza Meneguzzo 2023-07-28 16:09:22 -03:00
parent fd834bdcaa
commit 2eb7e31dc3

View File

@ -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")