Skip to content

Commit

Permalink
write in shroter
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Oct 28, 2015
1 parent 107b0dc commit 30b72f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions test/ruby/test_gc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,7 @@ def test_interrupt_in_finalizer
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
Expand Down
3 changes: 1 addition & 2 deletions test/ruby/test_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1364,8 +1364,7 @@ def test_status_quit
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?]")
Expand Down

0 comments on commit 30b72f9

Please sign in to comment.