* test/ruby/envutil.rb (EnvUtil#invoke_ruby): support for child
process env. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f75ab0150d
commit
2c2ae5b164
@ -1,3 +1,8 @@
|
|||||||
|
Sat Jun 5 15:15:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): support for child
|
||||||
|
process env.
|
||||||
|
|
||||||
Sat Jun 5 14:11:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Jun 5 14:11:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* test/net/imap/test_imap.rb (test_exception_during_shutdown):
|
* test/net/imap/test_imap.rb (test_exception_during_shutdown):
|
||||||
|
@ -75,7 +75,11 @@ module EnvUtil
|
|||||||
opt[:in] = in_c
|
opt[:in] = in_c
|
||||||
opt[:out] = out_c if capture_stdout
|
opt[:out] = out_c if capture_stdout
|
||||||
opt[:err] = err_c if capture_stderr
|
opt[:err] = err_c if capture_stderr
|
||||||
pid = spawn(EnvUtil.rubybin, *args, opt)
|
case args.first
|
||||||
|
when Hash
|
||||||
|
child_env = [args.shift]
|
||||||
|
end
|
||||||
|
pid = spawn(*child_env, EnvUtil.rubybin, *args, opt)
|
||||||
in_c.close
|
in_c.close
|
||||||
out_c.close if capture_stdout
|
out_c.close if capture_stdout
|
||||||
err_c.close if capture_stderr
|
err_c.close if capture_stderr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user