diff options
author | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-24 04:01:43 +0000 |
---|---|---|
committer | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-24 04:01:43 +0000 |
commit | 76cffcdbf2554afbaf8018b8a6c5993bf09577c1 (patch) | |
tree | 3a525bf4fb75f9e049a3c87f869402b43673145d /test/ruby | |
parent | 005986bd445f44a1a6500f8dbc9841d644ceb7a2 (diff) | |
download | ruby-76cffcdbf2554afbaf8018b8a6c5993bf09577c1.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index c4427be33c..ce80beabdd 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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) |