summaryrefslogtreecommitdiff
path: root/test/lib/test
diff options
context:
space:
mode:
authorheadius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-15 22:33:44 +0000
committerheadius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-15 22:33:44 +0000
commit0a52821396ca0e48c9ba7a6e6a3f4e8ab6f07447 (patch)
tree39dadfa3d4882b6d566db68b0bc09dc754f30dc1 /test/lib/test
parent5559e75ea557217b5298a2000315e472b03725c8 (diff)
* test/lib/test/unit.rb: Also rescue EINVAL for older Linux that
raises it in popen. [Bug #10494] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/test')
-rw-r--r--test/lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index cfafbba..629f3e7 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -403,7 +403,7 @@ module Test
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