From 55e7ded5c155277d2846ee03d76b206e3428ffb4 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 27 Oct 2015 20:47:17 +0000 Subject: dumping core may take too much time for CI git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_gc.rb') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index eb34990c4d..3e3e25d437 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -346,7 +346,13 @@ class TestGc < Test::Unit::TestCase ObjectSpace.define_finalizer(Object.new, f) end end; - out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, signal: :SEGV) do |*result| + opts = {signal: :SEGV} + begin + cur, max = Process.getrlimit(:CORE) + opts[:rlimit_core] = [0,max] + rescue NotImplementedError + end + out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result| break result end unless /mswin|mingw/ =~ RUBY_PLATFORM -- cgit v1.2.3