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
This commit is contained in:
parent
4c25e2fb8b
commit
2fe89ab618
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user