1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/io/console/test_io_console.rb: Rescue Errno::ENXIO for Solaris

https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20200509T100003Z.fail.html.gz
```
  1) Failure:
TestIO_Console#test_failed_path [/export/home/users/chkbuild/cb-gcc/tmp/build/20200509T100003Z/ruby/test/io/console/test_io_console.rb:40]:
[Errno::ENODEV, Errno::ENOTTY, Errno::EBADF] exception expected, not #<Errno::ENXIO: No such device or address - /dev/null>.
```
This commit is contained in:
Yusuke Endoh 2020-05-09 20:07:38 +09:00
parent be575a6eef
commit 595e74ae4b

View file

@ -31,7 +31,7 @@ class TestIO_Console < Test::Unit::TestCase
end
def test_failed_path
exceptions = %i[ENODEV ENOTTY EBADF].map {|e|
exceptions = %i[ENODEV ENOTTY EBADF ENXIO].map {|e|
Errno.const_get(e) if Errno.const_defined?(e)
}
exceptions.compact!