1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shirosaki 2012-11-24 04:01:43 +00:00
parent 005986bd44
commit 76cffcdbf2
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Nov 24 12:47:27 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
* 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@gmail.com>
* array.c (rb_ary_aref): fix Segmentation fault at TestArray#test_aref

View file

@ -1562,7 +1562,7 @@ class TestProcess < Test::Unit::TestCase
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)