Commit f413e688 authored by Masamitsu MURASE's avatar Masamitsu MURASE

Increase TEST_INFINITE_RECURSION_MAX value from 100000 to 1000000 because...

Increase TEST_INFINITE_RECURSION_MAX value from 100000 to 1000000 because modification of handling of `NODE_RETURN` reduces stack size.
parent 49c929a2
...@@ -321,19 +321,19 @@ end ...@@ -321,19 +321,19 @@ end
# very deeply recursive function that stil returns albeit very deeply so # very deeply recursive function that stil returns albeit very deeply so
$test_infinite_recursion = 0 $test_infinite_recursion = 0
TEST_INFINITE_RECURSION_MAX = 100000 TEST_INFINITE_RECURSION_MAX = 1000000
def test_infinite_recursion def test_infinite_recursion
$test_infinite_recursion += 1 $test_infinite_recursion += 1
if $test_infinite_recursion > TEST_INFINITE_RECURSION_MAX if $test_infinite_recursion > TEST_INFINITE_RECURSION_MAX
return $test_infinite_recursion return $test_infinite_recursion
end end
test_infinite_recursion test_infinite_recursion
end end
assert('Infinite recursion should result in an exception being raised') do assert('Infinite recursion should result in an exception being raised') do
a = begin a = begin
test_infinite_recursion test_infinite_recursion
rescue rescue
:ok :ok
end end
# OK if an exception was caught, otherwise a number will be stored in a # OK if an exception was caught, otherwise a number will be stored in a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment