summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMasamitsu MURASE <[email protected]>2013-02-27 02:47:08 +0900
committerMasamitsu MURASE <[email protected]>2013-02-27 03:45:11 +0900
commitf413e6881c2e325d10c041d03da695ad00b91830 (patch)
tree03a35383cbff5de2e41dd46451140595d3fa9571 /test
parent49c929a237fe482b2286aab47a263f8b51225cad (diff)
downloadmruby-f413e6881c2e325d10c041d03da695ad00b91830.tar.gz
mruby-f413e6881c2e325d10c041d03da695ad00b91830.zip
Increase TEST_INFINITE_RECURSION_MAX value from 100000 to 1000000 because modification of handling of `NODE_RETURN` reduces stack size.
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index 663c8f337..7ecc51fa8 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -321,19 +321,19 @@ end
# very deeply recursive function that stil returns albeit very deeply so
$test_infinite_recursion = 0
-TEST_INFINITE_RECURSION_MAX = 100000
+TEST_INFINITE_RECURSION_MAX = 1000000
def test_infinite_recursion
$test_infinite_recursion += 1
if $test_infinite_recursion > TEST_INFINITE_RECURSION_MAX
- return $test_infinite_recursion
+ return $test_infinite_recursion
end
- test_infinite_recursion
+ test_infinite_recursion
end
assert('Infinite recursion should result in an exception being raised') do
- a = begin
+ a = begin
test_infinite_recursion
- rescue
+ rescue
:ok
end
# OK if an exception was caught, otherwise a number will be stored in a