tests: update some tests to avoid infinite loops on --keep-going
authorJean Privat <jean@pryen.org>
Sun, 24 May 2015 21:03:07 +0000 (17:03 -0400)
committerJean Privat <jean@pryen.org>
Sun, 24 May 2015 21:03:07 +0000 (17:03 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/base_adaptive_loop3.nit
tests/base_adaptive_loop_null.nit

index 33f4c8d..42e331a 100644 (file)
@@ -27,4 +27,5 @@ while t2 != null do
                t2 = t2.next #alt2# t2 = null
        end
        #alt3#t2 = t2.next
+       #alt3#exit(0)
 end
index cfbb80f..e342e07 100644 (file)
@@ -48,6 +48,6 @@ loop
        if i != null then
                bar(i)
        else
-               break #alt4#
+               break #alt4# exit(0)
        end
 end