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