summaryrefslogtreecommitdiff
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r--test/ruby/test_array.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index cb39a3e1e9..676b20b1c4 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -2452,10 +2452,11 @@ class TestArray < Test::Unit::TestCase
"...(snip #{$&.count("\n")} lines)...\n"
end
end
- assert_normal_exit(<<-EOS, '[Bug #9718]', stdout_filter: reduce)
+ begin
+ assert_normal_exit(<<-EOS, '[Bug #9718]', timeout: 5, stdout_filter: reduce)
queue = []
- 10.times do
- 100_000.times do
+ 50.times do
+ 10_000.times do
queue << lambda{}
end
GC.start(full_mark: false, immediate_sweep: true)
@@ -2463,5 +2464,8 @@ class TestArray < Test::Unit::TestCase
queue.shift.call
end
EOS
+ rescue Timeout::Error => e
+ skip e.message
+ end
end
end