From 2b5a0c174d4154c389ceb3398f89c37977d3b3ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 14 Dec 2015 15:04:06 -0500 Subject: [PATCH] lib/gamnit: fix not executing gamnit programs when testing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/gamnit.nit | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 1.7.9.5