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

ruby-changes:25772

From: shirosaki <ko1@a...>
Date: Sat, 24 Nov 2012 13:01:55 +0900 (JST)
Subject: [ruby-changes:25772] shirosaki:r37829 (trunk): Fix TestProcess#test_setsid

shirosaki	2012-11-24 13:01:43 +0900 (Sat, 24 Nov 2012)

  New Revision: 37829

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

  Log:
    Fix TestProcess#test_setsid
    
    * test/ruby/test_process.rb (TestProcess#test_setsid): "./ruby-trunk"
      doesn't work on all environments. EnvUtil.rubybin would be suitable.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37828)
+++ ChangeLog	(revision 37829)
@@ -1,3 +1,8 @@
+Sat Nov 24 12:47:27 2012  Hiroshi Shirosaki  <h.shirosaki@g...>
+
+	* test/ruby/test_process.rb (TestProcess#test_setsid): "./ruby-trunk"
+	  doesn't work on all environments. EnvUtil.rubybin would be suitable.
+
 Sat Nov 24 12:28:04 2012  Hiroshi Shirosaki  <h.shirosaki@g...>
 
 	* array.c (rb_ary_aref): fix Segmentation fault at TestArray#test_aref
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 37828)
+++ test/ruby/test_process.rb	(revision 37829)
@@ -1562,7 +1562,7 @@
     return unless Process.respond_to?(:setsid)
     return unless Process.respond_to?(:getsid)
 
-    IO.popen(["./ruby-trunk", "-e", <<EOS]) do|io|
+    IO.popen([RUBY, "-e", <<EOS]) do|io|
 	Marshal.dump(Process.getsid, STDOUT)
 	newsid = Process.setsid
 	Marshal.dump(newsid, STDOUT)

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

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