Project

General

Profile

Bug #12502 ยป test_permutation_stack_error.patch

zeha (Christian Hofstaedtler), 06/17/2016 08:30 PM

View differences:

test/ruby/test_array.rb
def test_permutation_stack_error
bug9932 = '[ruby-core:63103] [Bug #9932]'
assert_separately([], <<-"end;") # do
# On some platforms (armel, mips), permutation is very expensive/slow.
assert_separately([], <<-"end;", timeout: 60) # do
assert_nothing_raised(SystemStackError, "#{bug9932}") do
assert_equal(:ok, Array.new(100_000, nil).permutation {break :ok})
end
    (1-1/1)