aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-28 19:03:31 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-28 19:03:31 +0000
commit847e9215f64f0f4a90c6e160ada6a90f95591e33 (patch)
tree0514f6aebaebcf051e1ccf6b0c35164959e457c0 /test/ruby/test_gc.rb
parent1b289bdd97e71f0a4584ed0d5f0bc50e95d1cc48 (diff)
downloadruby-847e9215f64f0f4a90c6e160ada6a90f95591e33.tar.gz
increase timeout (with full GC)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 4de23161d0..1d410b0564 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -346,8 +346,9 @@ class TestGc < Test::Unit::TestCase
ObjectSpace.define_finalizer(Object.new, f)
end
end;
- opts = {signal: :SEGV}
+ opts = {signal: :SEGV, timeout: 60}
opts[:rlimit_core] = 0 if defined?(Process::RLIMIT_CORE)
+ GC.start(full_mark: true, immediate_sweep: true)
out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result|
break result
end