diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-09 20:07:38 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-09 20:07:38 +0900 |
commit | 595e74ae4b86679a2dae57c13820d44d05ef919f (patch) | |
tree | 575a26f26e6d93a300b3d34550d0b2d83ed21937 /test | |
parent | be575a6eefbaea21550f2c378407dd405cd768bc (diff) | |
download | ruby-595e74ae4b86679a2dae57c13820d44d05ef919f.tar.gz |
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>.
```
Diffstat (limited to 'test')
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 261ebbc498..fe57225a6e 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -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! |