internal/processtest: use (*testing.T).TempDir

This commit is contained in:
Hajime Hoshi 2023-09-06 11:37:27 +09:00
parent ab893ad9c8
commit 55bfc02509

View File

@ -56,14 +56,11 @@ func TestPrograms(t *testing.T) {
t.Fatal(err)
}
tmpdir := t.TempDir()
// Run sub-tests one by one, not in parallel (#2571).
var m sync.Mutex
tmpdir, err := os.MkdirTemp("", "ebitengine-processtest-*")
if err != nil {
t.Fatal(err)
}
for _, e := range ents {
if e.IsDir() {
continue