ruby-changes:61164
From: Nobuyoshi <ko1@a...>
Date: Sat, 9 May 2020 14:52:05 +0900 (JST)
Subject: [ruby-changes:61164] 581763d14c (master): [ruby/io-console] Fails with EBADF on mingw
https://git.ruby-lang.org/ruby.git/commit/?id=581763d14c From 581763d14c63316f22c8685a624547f28d43a8af Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 9 May 2020 14:50:43 +0900 Subject: [ruby/io-console] Fails with EBADF on mingw https://github.com/ruby/io-console/commit/530cec574c diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 5938453..261ebbc 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].map {|e| + exceptions = %i[ENODEV ENOTTY EBADF].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/