From 4b2a9c32439e40a25db92c57cf115dd546a28477 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 2 Oct 2022 18:16:14 +0900 Subject: [PATCH] internal/testing: add the default exit code 1 This confirms that Update is really called. --- internal/testing/testing.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/testing/testing.go b/internal/testing/testing.go index 914c93ad1..cea545eb0 100644 --- a/internal/testing/testing.go +++ b/internal/testing/testing.go @@ -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)