[前][次][番号順一覧][スレッド一覧]

ruby-changes:16062

From: akr <ko1@a...>
Date: Tue, 25 May 2010 23:26:01 +0900 (JST)
Subject: [ruby-changes:16062] Ruby:r28011 (trunk): refine an assertion.

akr	2010-05-25 23:25:55 +0900 (Tue, 25 May 2010)

  New Revision: 28011

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28011

  Log:
    refine an assertion.

  Modified files:
    trunk/test/ruby/test_process.rb

Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 28010)
+++ test/ruby/test_process.rb	(revision 28011)
@@ -1065,7 +1065,9 @@
       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)>"],

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]