summaryrefslogtreecommitdiff
path: root/test/io/console/test_io_console.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-03 15:44:12 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-03 15:44:12 +0000
commit4b31e99b8f254c93af6acb9746dcd68109e5957f (patch)
tree7993d103d300dca3ce1b6e35ccc2d61745b7fd66 /test/io/console/test_io_console.rb
parentd24d2d3ca4558aee0feed31b71c3268a13ef685b (diff)
portability fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r--test/io/console/test_io_console.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index adf806556b..fdeea60399 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -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