summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-18 07:39:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-18 07:39:05 +0000
commit7d42b6fa0a2a050e4fa244a17e4c895960ce7a7e (patch)
tree9ca24b06300a83eb48ba4867cb1d2381ec63157e /test/ruby/test_io.rb
parentd2f685eed74fb7b345bf1a75b6023d62d86a1a52 (diff)
test_io.rb: EINVAL on Windows
* test/ruby/test_io.rb (test_read_command): unusable character causes Errno::EINVAL on Windows. From: Nobuyoshi Nakada <nobu@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index bb16953e99..b95f837571 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2192,10 +2192,10 @@ class TestIO < Test::Unit::TestCase
assert_warn(/invoke external command/) do
File.binread("|#{EnvUtil.rubybin} -e puts")
end
- assert_raise(Errno::ENOENT) do
+ assert_raise(Errno::ENOENT, Errno::EINVAL) do
Class.new(IO).read("|#{EnvUtil.rubybin} -e puts")
end
- assert_raise(Errno::ENOENT) do
+ assert_raise(Errno::ENOENT, Errno::EINVAL) do
Class.new(IO).binread("|#{EnvUtil.rubybin} -e puts")
end
end