diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-25 06:39:40 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-25 06:39:40 +0900 |
commit | 0a63c4d5fbbbfae9aba92c78e39b1521b90f1b06 (patch) | |
tree | 4f7c8613455358cfb977c315ad030f8b24a44bdb /test | |
parent | efa380b006aeafbad90b2d4e795a602404fec3c5 (diff) | |
download | ruby-0a63c4d5fbbbfae9aba92c78e39b1521b90f1b06.tar.gz |
Fix errno at seeking socket/pipe on Windows
[Bug #12230]
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 3c5dc7671a..0c81f4cb82 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2240,6 +2240,9 @@ class TestIO < Test::Unit::TestCase assert_raise(Errno::ENOENT, Errno::EINVAL) do Class.new(IO).binread("|#{EnvUtil.rubybin} -e puts") end + assert_raise(Errno::ESPIPE) do + IO.read("|echo foo", 1, 1) + end end def test_reopen |