зеркало из https://github.com/github/ruby.git
refine an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
42c16a3b07
Коммит
c3f2d17abe
|
@ -1065,7 +1065,9 @@ class TestProcess < Test::Unit::TestCase
|
||||||
Thread.new { sleep 1; Process.kill(:SIGQUIT, pid) }
|
Thread.new { sleep 1; Process.kill(:SIGQUIT, pid) }
|
||||||
Process.wait(pid)
|
Process.wait(pid)
|
||||||
s = $?
|
s = $?
|
||||||
assert_equal(true, s.signaled?, "status.signaled?")
|
assert_equal([false, true, false],
|
||||||
|
[s.exited?, s.signaled?, s.stopped?],
|
||||||
|
"[s.exited?, s.signaled?, s.stopped?]")
|
||||||
assert_send(
|
assert_send(
|
||||||
[["#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig })>",
|
[["#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig })>",
|
||||||
"#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig }) (core dumped)>"],
|
"#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig }) (core dumped)>"],
|
||||||
|
|
Загрузка…
Ссылка в новой задаче