зеркало из https://github.com/github/ruby.git
fix test_status_kill for coredump message in Process::Status#inspect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
340cd503a7
Коммит
ff27b33044
|
@ -891,7 +891,11 @@ class TestProcess < Test::Unit::TestCase
|
|||
Thread.new { sleep 1; Process.kill(:SIGQUIT, pid) }
|
||||
Process.wait(pid)
|
||||
s = $?
|
||||
assert_equal("#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig })>", s.inspect)
|
||||
assert_send(
|
||||
[["#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig })>",
|
||||
"#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig }) (core dumped)>"],
|
||||
:include?,
|
||||
s.inspect])
|
||||
assert_equal(false, s.exited?)
|
||||
assert_equal(nil, s.success?)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче