ruby-changes:9513
From: yugui <ko1@a...>
Date: Fri, 26 Dec 2008 01:32:56 +0900 (JST)
Subject: [ruby-changes:9513] Ruby:r21054 (ruby_1_9_1): merges r20530 from trunk into ruby_1_9_1.
yugui 2008-12-26 01:32:46 +0900 (Fri, 26 Dec 2008) New Revision: 21054 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21054 Log: merges r20530 from trunk into ruby_1_9_1. * test/ruby/test_process.rb: skip some tests on win32. Modified files: branches/ruby_1_9_1/test/ruby/test_process.rb Index: ruby_1_9_1/test/ruby/test_process.rb =================================================================== --- ruby_1_9_1/test/ruby/test_process.rb (revision 21053) +++ ruby_1_9_1/test/ruby/test_process.rb (revision 21054) @@ -127,6 +127,7 @@ end def test_execopts_pgroup + skip "system(:pgroup) is not supported" if /mswin|bccwin|mingw/ =~ RUBY_PLATFORM assert_nothing_raised { system(*TRUECOMMAND, :pgroup=>false) } io = IO.popen([RUBY, "-e", "print Process.getpgrp"]) @@ -461,6 +462,7 @@ end def test_fd_inheritance + skip "inheritance of fd>=3 is not supported" if /mswin|bccwin|mingw/ =~ RUBY_PLATFORM with_pipe {|r, w| system(RUBY, '-e', 'IO.new(ARGV[0].to_i).puts(:ba)', w.fileno.to_s) w.close @@ -564,14 +566,18 @@ end def test_execopts_redirect_self - with_pipe {|r, w| - w << "haha\n" - w.close - r.close_on_exec = true - IO.popen([RUBY, "-e", "print IO.new(#{r.fileno}).read", r.fileno=>r.fileno, :close_others=>false]) {|io| - assert_equal("haha\n", io.read) + begin + with_pipe {|r, w| + w << "haha\n" + w.close + r.close_on_exec = true + IO.popen([RUBY, "-e", "print IO.new(#{r.fileno}).read", r.fileno=>r.fileno, :close_others=>false]) {|io| + assert_equal("haha\n", io.read) + } } - } + rescue NotImplementedError + skip "IO#close_on_exec= is not supported" + end end def test_execopts_duplex_io -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/