From: Alexis Laferrière Date: Mon, 14 Dec 2015 20:04:06 +0000 (-0500) Subject: lib/gamnit: fix not executing gamnit programs when testing X-Git-Tag: v0.8~36^2~3 X-Git-Url: http://nitlanguage.org lib/gamnit: fix not executing gamnit programs when testing Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/gamnit.nit b/lib/gamnit/gamnit.nit index 63a5923..3601d5f 100644 --- a/lib/gamnit/gamnit.nit +++ b/lib/gamnit/gamnit.nit @@ -59,8 +59,6 @@ redef class App redef fun run do - if "NIT_TESTING".environ == "true" then exit 0 - # TODO manage exit condition loop frame_full end @@ -79,3 +77,11 @@ redef class App # This method should be refined by client modules to react to user inputs. fun accept_event(event: InputEvent): Bool do return false end + +redef class Sys + redef fun run + do + if "NIT_TESTING".environ == "true" then exit 0 + super + end +end