mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
internal/processtest: use (*testing.T).TempDir
This commit is contained in:
parent
ab893ad9c8
commit
55bfc02509
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user