From 036b55e5a4b29f35a7ee1d40f61474cd98a0a497 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Apr 2014 06:53:28 +0000 Subject: [PATCH] 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 --- test/ruby/test_array.rb | 10 +++++++--- 1 file 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