ruby-changes:16543
From: akr <ko1@a...>
Date: Sun, 4 Jul 2010 00:44:22 +0900 (JST)
Subject: [ruby-changes:16543] Ruby:r28535 (trunk): portability fix.
akr 2010-07-04 00:44:12 +0900 (Sun, 04 Jul 2010) New Revision: 28535 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28535 Log: portability fix. Modified files: trunk/test/io/console/test_io_console.rb Index: test/io/console/test_io_console.rb =================================================================== --- test/io/console/test_io_console.rb (revision 28534) +++ test/io/console/test_io_console.rb (revision 28535) @@ -138,7 +138,10 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/