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

[ruby/io-console] Fails with EBADF on mingw

https://github.com/ruby/io-console/commit/530cec574c
This commit is contained in:
Nobuyoshi Nakada 2020-05-09 14:50:43 +09:00
parent d7a59e2ffe
commit 581763d14c

View file

@ -31,7 +31,7 @@ class TestIO_Console < Test::Unit::TestCase
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!