diff options
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 |