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

* test/ruby/envutil.rb: reverted the changeset 19948 because it

concealed unexpected behaviours of ruby.

* test/ruby/test_io.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2008-10-27 03:13:54 +00:00
parent a61e734d0f
commit 0a88cb504b
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Mon Oct 27 12:04:58 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* test/ruby/envutil.rb: reverted the changeset 19948 because it
concealed unexpected behaviours of ruby.
* test/ruby/test_io.rb: ditto.
Mon Oct 27 12:02:53 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* ext/nkf/nkf.c (rb_nkf_convert): should specify type of variable.

View file

@ -122,7 +122,7 @@ module Test
c = "C"
env = {}
LANG_ENVS.each {|lc| env[lc], ENV[lc] = ENV[lc], c}
pid = spawn(EnvUtil.rubybin, "--disable-gems", *args, STDIN=>in_c, STDOUT=>out_c, STDERR=>err_c)
pid = spawn(EnvUtil.rubybin, *args, STDIN=>in_c, STDOUT=>out_c, STDERR=>err_c)
in_c.close
out_c.close
err_c.close

View file

@ -581,7 +581,7 @@ class TestIO < Test::Unit::TestCase
def ruby(*args)
args = ['-e', '$>.write($<.read)'] if args.empty?
ruby = EnvUtil.rubybin
f = IO.popen([ruby, "--disable-gems"] + args, 'r+')
f = IO.popen([ruby] + args, 'r+')
yield(f)
ensure
f.close unless !f || f.closed?