mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_rubyoptions.rb (test_script_from_stdin): slave pty
should be manipulated because master pty may not be a tty on some environment (e.g. Solaris). [Bug:#5222] [ruby-dev:44420] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
32618ba743
commit
073f94e24f
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Aug 25 01:11:36 2011 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* test/ruby/test_rubyoptions.rb (test_script_from_stdin): slave pty
|
||||
should be manipulated because master pty may not be a tty on some
|
||||
environment (e.g. Solaris). [Bug:#5222] [ruby-dev:44420]
|
||||
|
||||
Wed Aug 24 15:13:56 2011 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* iseq.h, iseq.c, compile.c: Change the line number data structure
|
||||
|
|
|
@ -514,7 +514,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
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
|
||||
|
@ -530,7 +530,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
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")
|
||||
|
|
Loading…
Reference in a new issue