From cacda623ad4c039bd891f465eac30a98f87a4e76 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Sun, 24 May 2015 17:03:07 -0400 Subject: [PATCH] tests: update some tests to avoid infinite loops on --keep-going Signed-off-by: Jean Privat --- tests/base_adaptive_loop3.nit | 1 + tests/base_adaptive_loop_null.nit | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 1.7.9.5