diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_gc.rb | 6 | ||||
-rw-r--r-- | test/ruby/test_process.rb | 3 |
2 files changed, 2 insertions, 7 deletions
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?]") |