diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-19 17:46:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-19 17:46:39 +0000 |
commit | 2fe89ab6182bf77f43cad37e79c96168d97aad14 (patch) | |
tree | 5cb95a117606abf661724e80340b28fc649a8275 /test/ruby | |
parent | 4c25e2fb8ba17a4d83f3e55c6ddfa5ae417d1f7c (diff) | |
download | ruby-2fe89ab6182bf77f43cad37e79c96168d97aad14.tar.gz |
test_process.rb: redirect to null
* test/ruby/test_process.rb (test_no_curdir): since standard handles
cannot close on Windows, redirect to null device.
* test/ruby/test_process.rb (assert_fail_too_long_path): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 2d074219cd..32c12fcdc6 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1350,7 +1350,7 @@ class TestProcess < Test::Unit::TestCase Dir.chdir("vd") { dir = "#{d}/vd" # OpenSolaris cannot remove the current directory. - system(RUBY, "--disable-gems", "-e", "Dir.chdir '..'; Dir.rmdir #{dir.dump}") + system(RUBY, "--disable-gems", "-e", "Dir.chdir '..'; Dir.rmdir #{dir.dump}", err: File::NULL) system({"RUBYLIB"=>nil}, RUBY, "--disable-gems", "-e", "exit true") status = $? } @@ -1397,7 +1397,7 @@ class TestProcess < Test::Unit::TestCase assert_raise(*exs, mesg) do begin loop do - Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>:close) + Process.spawn(cmds.join(sep), [STDOUT, STDERR]=>File::NULL) min = [cmds.size, min].max cmds *= 100 end |