mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
parent
c3709f57b7
commit
397da70815
@ -42,7 +42,11 @@ func TestPrograms(t *testing.T) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Run tests not in parallel (#2571)
|
||||||
|
ch := make(chan struct{})
|
||||||
t.Run(n, func(t *testing.T) {
|
t.Run(n, func(t *testing.T) {
|
||||||
|
defer close(ch)
|
||||||
|
|
||||||
cmd := exec.Command("go", "run", filepath.Join(dir, n))
|
cmd := exec.Command("go", "run", filepath.Join(dir, n))
|
||||||
stderr := &bytes.Buffer{}
|
stderr := &bytes.Buffer{}
|
||||||
cmd.Stderr = stderr
|
cmd.Stderr = stderr
|
||||||
@ -50,5 +54,6 @@ func TestPrograms(t *testing.T) {
|
|||||||
t.Errorf("%v\n%s", err, stderr)
|
t.Errorf("%v\n%s", err, stderr)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
<-ch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user