mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2026580dc2
commit
86714f5b16
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
Thu Jul 10 19:38:35 2008 wanabe <s.wanabe@gmail.com>
|
||||
* test/ruby/envutil.rb (assert_normal_exit): r17993 revert.
|
||||
|
||||
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.
|
||||
|
|
|
@ -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…
Reference in a new issue