internal/testing: add the default exit code 1

This confirms that Update is really called.
This commit is contained in:
Hajime Hoshi 2022-10-02 18:16:14 +09:00
parent d08c1dbf8d
commit 4b2a9c3243

View File

@ -42,6 +42,7 @@ func MainWithRunLoop(m *testing.M) {
// Run an Ebiten process so that (*Image).At is available.
g := &game{
m: m,
code: 1,
}
if err := ebiten.RunGame(g); err != nil {
panic(err)