ruby-changes:16043
From: akr <ko1@a...>
Date: Mon, 24 May 2010 22:50:13 +0900 (JST)
Subject: [ruby-changes:16043] Ruby:r27992 (trunk): add an assertion.
akr 2010-05-24 22:50:05 +0900 (Mon, 24 May 2010) New Revision: 27992 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27992 Log: add an assertion. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 27991) +++ test/ruby/test_process.rb (revision 27992) @@ -1065,6 +1065,7 @@ 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)>"], -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/