diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 05:40:04 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 05:40:04 +0000 |
commit | 575b408efe2920e75308f22d091f0622ade13e64 (patch) | |
tree | 134d2949a3d6a0883d9a6061cb6ed5591c815380 | |
parent | 5d175365133cdb72156e68f6511735f32c3cd845 (diff) | |
download | ruby-575b408efe2920e75308f22d091f0622ade13e64.tar.gz |
write in shroter
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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?]") |