From: Jean Privat Date: Sun, 24 May 2015 21:03:07 +0000 (-0400) Subject: tests: update some tests to avoid infinite loops on --keep-going X-Git-Tag: v0.7.6~61^2~9 X-Git-Url: http://nitlanguage.org tests: update some tests to avoid infinite loops on --keep-going Signed-off-by: Jean Privat --- diff --git a/tests/base_adaptive_loop3.nit b/tests/base_adaptive_loop3.nit index 33f4c8d..42e331a 100644 --- a/tests/base_adaptive_loop3.nit +++ b/tests/base_adaptive_loop3.nit @@ -27,4 +27,5 @@ while t2 != null do t2 = t2.next #alt2# t2 = null end #alt3#t2 = t2.next + #alt3#exit(0) end diff --git a/tests/base_adaptive_loop_null.nit b/tests/base_adaptive_loop_null.nit index cfbb80f..e342e07 100644 --- a/tests/base_adaptive_loop_null.nit +++ b/tests/base_adaptive_loop_null.nit @@ -48,6 +48,6 @@ loop if i != null then bar(i) else - break #alt4# + break #alt4# exit(0) end end