summaryrefslogtreecommitdiff
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-11 06:53:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-11 06:53:28 +0000
commit036b55e5a4b29f35a7ee1d40f61474cd98a0a497 (patch)
tree013327462eb68b89231ea6fa55f1b711435f208b /test/ruby/test_array.rb
parent2cabdf2a8e1d6a517b7e882c630ac9454a7bff47 (diff)
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
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