From 30b72f98f791ffa257ac74ae228c1c069fdd34dd Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 28 Oct 2015 05:40:04 +0000 Subject: write in shroter git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 6 +----- test/ruby/test_process.rb | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index cf869924c1..4de23161d0 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -347,11 +347,7 @@ class TestGc < Test::Unit::TestCase end end; opts = {signal: :SEGV} - begin - _, max = Process.getrlimit(:CORE) - opts[:rlimit_core] = [0,max] - rescue NotImplementedError - end + opts[:rlimit_core] = 0 if defined?(Process::RLIMIT_CORE) out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result| break result end diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 8318e4e619..177af17724 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1364,8 +1364,7 @@ class TestProcess < Test::Unit::TestCase return unless Signal.list.include?("QUIT") with_tmpchdir do - _, max = Process.getrlimit(:CORE) - s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, :rlimit_core=>[0,max]) + s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, rlimit_core: 0) assert_equal([false, true, false, nil], [s.exited?, s.signaled?, s.stopped?, s.success?], "[s.exited?, s.signaled?, s.stopped?, s.success?]") -- cgit v1.2.3