summaryrefslogtreecommitdiff
path: root/test/io/console
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-09 14:50:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-09 14:51:43 +0900
commit581763d14c63316f22c8685a624547f28d43a8af (patch)
tree2d2083a19542c0a1a8fe741c9b28025d4b7c493e /test/io/console
parentd7a59e2ffe45b27c084a8fe8cfe12b63dd1e6de8 (diff)
[ruby/io-console] Fails with EBADF on mingw
https://github.com/ruby/io-console/commit/530cec574c
Diffstat (limited to 'test/io/console')
-rw-r--r--test/io/console/test_io_console.rb2
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 59384533ad..261ebbc498 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].map {|e|
+ exceptions = %i[ENODEV ENOTTY EBADF].map {|e|
Errno.const_get(e) if Errno.const_defined?(e)
}
exceptions.compact!