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

ruby-changes:2588

From: ko1@a...
Date: 2 Dec 2007 13:13:26 +0900
Subject: [ruby-changes:2588] akr - Ruby:r14079 (trunk): check Process.kill instead of Process#kill.

akr	2007-12-02 13:13:17 +0900 (Sun, 02 Dec 2007)

  New Revision: 14079

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

  Log:
    check Process.kill instead of Process#kill.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_signal.rb?r1=14079&r2=14078

Index: test/ruby/test_signal.rb
===================================================================
--- test/ruby/test_signal.rb	(revision 14078)
+++ test/ruby/test_signal.rb	(revision 14079)
@@ -12,7 +12,7 @@
   end
 
   def test_signal
-    return unless Process.method_defined?(:kill)
+    return unless Process.respond_to?(:kill)
     begin
       x = 0
       oldtrap = Signal.trap(:INT) {|sig| x = 2 }

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

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