From 86714f5b160a5342f6ed9564fe9db30be120100c Mon Sep 17 00:00:00 2001 From: wanabe Date: Thu, 10 Jul 2008 10:45:51 +0000 Subject: [PATCH] * test/ruby/envutil.rb (assert_normal_exit): r17993 revert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 3 +++ test/ruby/envutil.rb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5622b06d48..c8d182cb6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Thu Jul 10 19:38:35 2008 wanabe + * test/ruby/envutil.rb (assert_normal_exit): r17993 revert. + Thu Jul 10 18:29:41 2008 wanabe * test/ruby/envutil.rb (assert_normal_exit): finish writing script before spawn("ruby") to avoid blocking in win32. diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 09d5d3a09d..b9af6ff9cc 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -74,11 +74,11 @@ module Test def assert_normal_exit(testsrc, message = '') in_c, in_p = IO.pipe out_p, out_c = IO.pipe - in_p.write testsrc - in_p.close pid = spawn(EnvUtil.rubybin, '-W0', STDIN=>in_c, STDOUT=>out_c, STDERR=>out_c) in_c.close out_c.close + in_p.write testsrc + in_p.close msg = out_p.read out_p.close Process.wait pid