diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-08 01:50:47 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-08 01:50:47 +0000 |
commit | a9500bbccd5090794d745500c65262ac68f4944c (patch) | |
tree | 516078fb81023ea84a90b830a4b635c83edfd6d4 /test | |
parent | d22e2877631257013dcd92f3428e259723783dd0 (diff) |
merge revision(s) 33049:
* 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/branches/ruby_1_9_3@34475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 4fb26111ba..339999a17e 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -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") |