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

ruby-changes:61167

From: Yusuke <ko1@a...>
Date: Sat, 9 May 2020 20:08:31 +0900 (JST)
Subject: [ruby-changes:61167] 595e74ae4b (master): test/io/console/test_io_console.rb: Rescue Errno::ENXIO for Solaris

https://git.ruby-lang.org/ruby.git/commit/?id=595e74ae4b

From 595e74ae4b86679a2dae57c13820d44d05ef919f Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 9 May 2020 20:07:38 +0900
Subject: 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>.
```

diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 261ebbc..fe57225 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 https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L31
   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!
-- 
cgit v0.10.2


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

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