mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/testing: add the default exit code 1
This confirms that Update is really called.
This commit is contained in:
parent
d08c1dbf8d
commit
4b2a9c3243
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user