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:
parent
40b1aa9adf
commit
1ccaef9938
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue