nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3c578d2
)
lib/gamnit: fix not executing gamnit programs when testing
author
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 14 Dec 2015 20:04:06 +0000
(15:04 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 14 Dec 2015 20:45:40 +0000
(15:45 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/gamnit.nit
patch
|
blob
|
history
diff --git
a/lib/gamnit/gamnit.nit
b/lib/gamnit/gamnit.nit
index
63a5923
..
3601d5f
100644
(file)
--- 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