mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
5559e75ea5
commit
0a52821396
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue