mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
52a3897f4f
commit
2026580dc2
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Jul 10 18:29:41 2008 wanabe <s.wanabe@gmail.com>
|
||||
* test/ruby/envutil.rb (assert_normal_exit): finish writing script
|
||||
before spawn("ruby") to avoid blocking in win32.
|
||||
|
||||
Thu Jul 10 17:20:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (insert): follow recent changes of globbing.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue