mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_rubyoptions.rb (TestRubyOptions::test_script_from_stdin):
As usual, PTY is not always available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d61b7e13f
commit
c637e7b458
2 changed files with 19 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 29 21:04:05 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_rubyoptions.rb (TestRubyOptions::test_script_from_stdin):
|
||||
As usual, PTY is not always available.
|
||||
|
||||
Wed Sep 29 18:38:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/config.sub (x64): regularize only for pc vendor, and strip
|
||||
|
|
|
@ -435,6 +435,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
require 'timeout'
|
||||
result = nil
|
||||
IO.pipe {|r, w|
|
||||
begin
|
||||
PTY.open {|m, s|
|
||||
m.echo = false
|
||||
m.print("\C-d")
|
||||
|
@ -445,6 +446,9 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
end
|
||||
Process.wait pid
|
||||
}
|
||||
rescue RuntimeError
|
||||
skip $!
|
||||
end
|
||||
}
|
||||
assert_equal("", result, '[ruby-dev:37798]')
|
||||
IO.pipe {|r, w|
|
||||
|
|
Loading…
Reference in a new issue