1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
akr 2010-05-25 14:25:55 +00:00
parent 42c16a3b07
commit c3f2d17abe

View file

@ -1065,7 +1065,9 @@ class TestProcess < Test::Unit::TestCase
Thread.new { sleep 1; Process.kill(:SIGQUIT, pid) }
Process.wait(pid)
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(
[["#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig })>",
"#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig }) (core dumped)>"],