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

add an assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-05-24 13:50:05 +00:00
parent bf36feb76d
commit 3cea675fbe

View file

@ -1065,6 +1065,7 @@ 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_send(
[["#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig })>",
"#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig }) (core dumped)>"],