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:
parent
42c16a3b07
commit
c3f2d17abe
1 changed files with 3 additions and 1 deletions
|
@ -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)>"],
|
||||
|
|
Loading…
Reference in a new issue