mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tmpdir := t.TempDir()
|
||||||
|
|
||||||
// Run sub-tests one by one, not in parallel (#2571).
|
// Run sub-tests one by one, not in parallel (#2571).
|
||||||
var m sync.Mutex
|
var m sync.Mutex
|
||||||
|
|
||||||
tmpdir, err := os.MkdirTemp("", "ebitengine-processtest-*")
|
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, e := range ents {
|
for _, e := range ents {
|
||||||
if e.IsDir() {
|
if e.IsDir() {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user