From 1ccaef99387466be96e2fe89f02d55e074bea227 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 7 Oct 2013 06:08:59 +0000 Subject: [PATCH] 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 --- test/ruby/test_io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 1351ee12a9..ecc4a97eb2 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -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