Skip to content

Commit e2c504c

Browse files
committed
Increase timeout for test_array.rb test_permutation_stack_error, as Array#permutation is very slow on armel, mips, mipsel. Forwarded to upstream as issue #12502.
1 parent 4f4fbc2 commit e2c504c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
ruby2.3 (2.3.1-5) UNRELEASED; urgency=medium
2+
3+
* Increase timeout for test_array.rb test_permutation_stack_error,
4+
as Array#permutation is very slow on armel, mips, mipsel.
5+
Forwarded to upstream as issue #12502.
6+
7+
-- Christian Hofstaedtler <[email protected]> Fri, 17 Jun 2016 20:32:01 +0000
8+
19
ruby2.3 (2.3.1-4) unstable; urgency=medium
210

311
* Backport some test changes from Ruby trunk, to fix (some) build

test/ruby/test_array.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,8 @@ def test_permutation
18231823

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

0 commit comments

Comments
 (0)