ruby-changes:49206
From: nobu <ko1@a...>
Date: Mon, 18 Dec 2017 16:39:16 +0900 (JST)
Subject: [ruby-changes:49206] nobu:r61321 (trunk): test_io.rb: EINVAL on Windows
nobu 2017-12-18 16:39:05 +0900 (Mon, 18 Dec 2017) New Revision: 61321 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61321 Log: 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@r...> Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 61320) +++ test/ruby/test_io.rb (revision 61321) @@ -2192,10 +2192,10 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L2192 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/