ruby-changes:15857
From: usa <ko1@a...>
Date: Fri, 14 May 2010 13:34:47 +0900 (JST)
Subject: [ruby-changes:15857] Ruby:r27793 (trunk): * test/ruby/test_process.rb: skip some tests on Windows.
usa 2010-05-14 13:34:37 +0900 (Fri, 14 May 2010) New Revision: 27793 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27793 Log: * test/ruby/test_process.rb: skip some tests on Windows. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 27792) +++ test/ruby/test_process.rb (revision 27793) @@ -466,24 +466,24 @@ } Process.wait pid } - end - closed_fd = nil - with_pipes(5) {|pipes| - io = pipes.last.last - closed_fd = io.fileno - } - assert_raise(Errno::EBADF) { Process.wait spawn(*TRUECOMMAND, closed_fd=>closed_fd) } + closed_fd = nil + with_pipes(5) {|pipes| + io = pipes.last.last + closed_fd = io.fileno + } + assert_raise(Errno::EBADF) { Process.wait spawn(*TRUECOMMAND, closed_fd=>closed_fd) } - with_pipe {|r, w| - if w.respond_to?(:"close_on_exec=") - w.close_on_exec = true - pid = spawn(RUBY, "-e", "IO.new(#{w.fileno}, 'w').print 'a'", w=>w) - w.close - assert_equal("a", r.read) - Process.wait pid - end - } + with_pipe {|r, w| + if w.respond_to?(:"close_on_exec=") + w.close_on_exec = true + pid = spawn(RUBY, "-e", "IO.new(#{w.fileno}, 'w').print 'a'", w=>w) + w.close + assert_equal("a", r.read) + Process.wait pid + end + } + end system(*ECHO["funya"], :out=>"out") assert_equal("funya\n", File.read("out")) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/