mirror of https://github.com/golang/go.git
use t.TestDir instead of os.Mkdirtemp
This commit is contained in:
parent
fd834bdcaa
commit
2eb7e31dc3
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue