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

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