mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_array.rb: skip if timed out
* test/ruby/test_array.rb (test_shared_marking): skip if timed out, this test can just take a lot of time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2cabdf2a8e
commit
036b55e5a4
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue