mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00
write in shroter
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
107b0dc8cd
commit
30b72f98f7
2 changed files with 2 additions and 7 deletions
|
@ -347,11 +347,7 @@ class TestGc < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
opts = {signal: :SEGV}
|
opts = {signal: :SEGV}
|
||||||
begin
|
opts[:rlimit_core] = 0 if defined?(Process::RLIMIT_CORE)
|
||||||
_, max = Process.getrlimit(:CORE)
|
|
||||||
opts[:rlimit_core] = [0,max]
|
|
||||||
rescue NotImplementedError
|
|
||||||
end
|
|
||||||
out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result|
|
out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result|
|
||||||
break result
|
break result
|
||||||
end
|
end
|
||||||
|
|
|
@ -1364,8 +1364,7 @@ class TestProcess < Test::Unit::TestCase
|
||||||
return unless Signal.list.include?("QUIT")
|
return unless Signal.list.include?("QUIT")
|
||||||
|
|
||||||
with_tmpchdir do
|
with_tmpchdir do
|
||||||
_, max = Process.getrlimit(:CORE)
|
s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, rlimit_core: 0)
|
||||||
s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, :rlimit_core=>[0,max])
|
|
||||||
assert_equal([false, true, false, nil],
|
assert_equal([false, true, false, nil],
|
||||||
[s.exited?, s.signaled?, s.stopped?, s.success?],
|
[s.exited?, s.signaled?, s.stopped?, s.success?],
|
||||||
"[s.exited?, s.signaled?, s.stopped?, s.success?]")
|
"[s.exited?, s.signaled?, s.stopped?, s.success?]")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue