diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-14 04:34:37 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-14 04:34:37 +0000 |
commit | d863f7af0c34a0e346eafa200773f6a8d5b67f3b (patch) | |
tree | bc3013eb5ffad7bfcfe8ead42b73953a81481b52 /test/ruby/test_process.rb | |
parent | 4eb19660e9d736e7afb80f79a9b7cedfd6f7dabe (diff) | |
download | ruby-d863f7af0c34a0e346eafa200773f6a8d5b67f3b.tar.gz |
* test/ruby/test_process.rb: skip some tests on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 2aa88af622..9fc9f0c603 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -466,24 +466,24 @@ class TestProcess < Test::Unit::TestCase } 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) } - 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 - } + 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 + } + end system(*ECHO["funya"], :out=>"out") assert_equal("funya\n", File.read("out")) |