Project

General

Profile

Bug #5222 » test-rubyoptions.patch

ngoto (Naohisa Goto), 08/25/2011 12:58 AM

View differences:

trunk/test/ruby/test_rubyoptions.rb (working copy)
IO.pipe {|r, w|
begin
PTY.open {|m, s|
m.echo = false
s.echo = false
m.print("\C-d")
pid = spawn(EnvUtil.rubybin, :in => s, :out => w)
w.close
......
assert_equal("", result, '[ruby-dev:37798]')
IO.pipe {|r, w|
PTY.open {|m, s|
m.echo = false
s.echo = false
pid = spawn(EnvUtil.rubybin, :in => s, :out => w)
w.close
m.print("$stdin.read; p $stdin.gets\n\C-d")
    (1-1/1)