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

ruby-changes:25690

From: kosaki <ko1@a...>
Date: Tue, 20 Nov 2012 14:39:26 +0900 (JST)
Subject: [ruby-changes:25690] kosaki:r37747 (trunk): * test/ruby/test_signal.rb (TestSignal#test_signame): fix windows

kosaki	2012-11-20 14:39:14 +0900 (Tue, 20 Nov 2012)

  New Revision: 37747

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

  Log:
    * test/ruby/test_signal.rb (TestSignal#test_signame): fix windows
      test failure. Process.kill on windows can't send a signal to
      another process.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37746)
+++ ChangeLog	(revision 37747)
@@ -1,3 +1,9 @@
+Tue Nov 20 14:19:20 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* test/ruby/test_signal.rb (TestSignal#test_signame): fix windows
+	  test failure. Process.kill on windows can't send a signal to
+	  another process.
+
 Tue Nov 20 13:58:11 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* io.c (Init_IO): removed all rb_file_const() into file.c.
Index: test/ruby/test_signal.rb
===================================================================
--- test/ruby/test_signal.rb	(revision 37746)
+++ test/ruby/test_signal.rb	(revision 37747)
@@ -251,10 +251,10 @@
           STDOUT.flush
           exit 0
         end
-        sleep
+        Process.kill("INT", $$)
+        sleep 1  # wait signal deliver
 EOS
-        sleep 0.1
-        Process.kill("INT", child.pid)
+
         signame = Marshal.load(child)
         assert_equal(signame, "INT")
       end

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

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