Bug #5222 » test-rubyoptions.patch
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")
|