mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-02 22:14:29 +01:00
internal/beforemaintest: avoid os.Exit(0)
This commit is contained in:
parent
67441c4823
commit
71370a01bd
@ -78,7 +78,9 @@ func TestMain(m *testing.M) {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
os.Exit(<-codeCh)
|
||||
if code := <-codeCh; code != 0 {
|
||||
os.Exit(code)
|
||||
}
|
||||
}
|
||||
|
||||
type testResult struct {
|
||||
|
Loading…
Reference in New Issue
Block a user