[前][次][番号順一覧][スレッド一覧]

ruby-changes:31085

From: nobu <ko1@a...>
Date: Mon, 7 Oct 2013 15:09:05 +0900 (JST)
Subject: [ruby-changes:31085] nobu:r43164 (trunk): test_io.rb: get rid of error message

nobu	2013-10-07 15:08:59 +0900 (Mon, 07 Oct 2013)

  New Revision: 43164

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43164

  Log:
    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.

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 43163)
+++ test/ruby/test_io.rb	(revision 43164)
@@ -1411,7 +1411,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1411
 
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]