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 | 30b72f98f791ffa257ac74ae228c1c069fdd34dd (patch) | |
tree | 134d2949a3d6a0883d9a6061cb6ed5591c815380 /test/ruby/test_gc.rb | |
parent | 107b0dc8cdd3c49563bd057c631c1d662d6dfd89 (diff) | |
download | ruby-30b72f98f791ffa257ac74ae228c1c069fdd34dd.tar.gz |
write in shroter
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 6 |
1 files changed, 1 insertions, 5 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 |