[前][次][番号順一覧][スレッド一覧]

ruby-changes:36773

From: headius <ko1@a...>
Date: Tue, 16 Dec 2014 07:33:54 +0900 (JST)
Subject: [ruby-changes:36773] headius:r48854 (trunk): * test/lib/test/unit.rb: Also rescue EINVAL for older Linux that

headius	2014-12-16 07:33:44 +0900 (Tue, 16 Dec 2014)

  New Revision: 48854

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48854

  Log:
    * test/lib/test/unit.rb: Also rescue EINVAL for older Linux that
      raises it in popen. [Bug #10494]

  Modified files:
    trunk/test/lib/test/unit.rb
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 48853)
+++ test/lib/test/unit.rb	(revision 48854)
@@ -403,7 +403,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L403
           begin
             require 'io/console'
             width = $stdout.winsize[1]
-          rescue LoadError, NoMethodError, Errno::ENOTTY, Errno::EBADF
+          rescue LoadError, NoMethodError, Errno::ENOTTY, Errno::EBADF, Errno::EINVAL
             width = ENV["COLUMNS"].to_i.nonzero? || 80
           end
           width -= 1 if /mswin|mingw/ =~ RUBY_PLATFORM

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]