mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
portability fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d24d2d3ca4
commit
4b31e99b8f
1 changed files with 4 additions and 1 deletions
|
@ -138,7 +138,10 @@ class TestIO_Console < Test::Unit::TestCase
|
|||
|
||||
def test_winsize
|
||||
PTY.open {|m, s|
|
||||
assert_equal([0, 0], s.winsize)
|
||||
begin
|
||||
assert_equal([0, 0], s.winsize)
|
||||
rescue Errno::EINVAL # OpenSolaris 2009.06 TIOCGWINSZ causes Errno::EINVAL before TIOCSWINSZ.
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue