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

test_io.rb: get rid of error message

* test/ruby/test_io.rb (TestIO#test_pid_after_close_read): get rid of
  broken pipe error message from invoked command, by let it exit
  silently.  echo in cmd.exe does not interpret double quotes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-10-07 06:08:59 +00:00
parent 40b1aa9adf
commit 1ccaef9938

View file

@ -1411,7 +1411,7 @@ class TestIO < Test::Unit::TestCase
def test_pid_after_close_read
pid1 = pid2 = nil
IO.popen(["echo", ""], "r+") do |io|
IO.popen(["exit"], "r+") do |io|
pid1 = io.pid
io.close_read
pid2 = io.pid