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

ruby-changes:27193

From: kosaki <ko1@a...>
Date: Fri, 15 Feb 2013 05:01:48 +0900 (JST)
Subject: [ruby-changes:27193] kosaki:r39245 (trunk): * test/ruby/test_process.rb (test_setsid): Added a workaround for

kosaki	2013-02-15 05:01:37 +0900 (Fri, 15 Feb 2013)

  New Revision: 39245

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

  Log:
    * test/ruby/test_process.rb (test_setsid): Added a workaround for
      MacOS X. Patch by nagachika. [Bug #7826] [ruby-core:52126]

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39244)
+++ ChangeLog	(revision 39245)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Feb 14 10:45:31 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* test/ruby/test_process.rb (test_setsid): Added a workaround for
+	  MacOS X. Patch by nagachika. [Bug #7826] [ruby-core:52126]
+
 Fri Feb 15 00:15:31 2013  Tanaka Akira  <akr@f...>
 
 	* ext/socket/sockport.h (VALIDATE_SOCKLEN): new macro to validate
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 39244)
+++ test/ruby/test_process.rb	(revision 39245)
@@ -1583,6 +1583,9 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1583
 	newsid = Process.setsid
 	Marshal.dump(newsid, STDOUT)
 	STDOUT.flush
+	# getsid() on MacOS X return ESRCH when target process is zombie
+	# even if it is valid process id.
+	sleep
 EOS
       begin
         # test Process.getsid() w/o arg

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

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