diff options
author | wanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-10 09:31:03 +0000 |
---|---|---|
committer | wanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-10 09:31:03 +0000 |
commit | 2026580dc20c4afe8f4daaa62fb53c0b6be8d0d0 (patch) | |
tree | e7f1d2154b1e407dbd83467bfa88300ddd302aec /test/ruby/envutil.rb | |
parent | 52a3897f4f84cc53f1d258916a132a0ab04a6dd8 (diff) | |
download | ruby-2026580dc20c4afe8f4daaa62fb53c0b6be8d0d0.tar.gz |
* test/ruby/envutil.rb (assert_normal_exit): finish writing script
before spawn("ruby") to avoid blocking in win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r-- | test/ruby/envutil.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index b9af6ff9cc..09d5d3a09d 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 |