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>
|
Wed Sep 29 18:38:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* tool/config.sub (x64): regularize only for pc vendor, and strip
|
* tool/config.sub (x64): regularize only for pc vendor, and strip
|
||||||
|
|
|
@ -435,16 +435,20 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
result = nil
|
result = nil
|
||||||
IO.pipe {|r, w|
|
IO.pipe {|r, w|
|
||||||
PTY.open {|m, s|
|
begin
|
||||||
m.echo = false
|
PTY.open {|m, s|
|
||||||
m.print("\C-d")
|
m.echo = false
|
||||||
pid = spawn(EnvUtil.rubybin, :in => s, :out => w)
|
m.print("\C-d")
|
||||||
w.close
|
pid = spawn(EnvUtil.rubybin, :in => s, :out => w)
|
||||||
assert_nothing_raised('[ruby-dev:37798]') do
|
w.close
|
||||||
result = Timeout.timeout(3) {r.read}
|
assert_nothing_raised('[ruby-dev:37798]') do
|
||||||
end
|
result = Timeout.timeout(3) {r.read}
|
||||||
Process.wait pid
|
end
|
||||||
}
|
Process.wait pid
|
||||||
|
}
|
||||||
|
rescue RuntimeError
|
||||||
|
skip $!
|
||||||
|
end
|
||||||
}
|
}
|
||||||
assert_equal("", result, '[ruby-dev:37798]')
|
assert_equal("", result, '[ruby-dev:37798]')
|
||||||
IO.pipe {|r, w|
|
IO.pipe {|r, w|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue