зеркало из https://github.com/github/ruby.git
Update to ruby/spec@c8b36c4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2076c2c3c4
Коммит
c027f22443
|
@ -65,6 +65,7 @@ describe :dir_open, shared: true do
|
|||
it 'sets the close-on-exec flag for the directory file descriptor' do
|
||||
Dir.send(@method, DirSpecs.mock_dir) do |dir|
|
||||
io = IO.for_fd(dir.fileno)
|
||||
io.autoclose = false
|
||||
io.close_on_exec?.should == true
|
||||
end
|
||||
end
|
||||
|
|
|
@ -582,7 +582,7 @@ describe "Process.spawn" do
|
|||
r.close_on_exec = false
|
||||
w.close_on_exec = false
|
||||
|
||||
code = "fd = IO.for_fd(#{w.fileno}); fd.write 'abc'; fd.close"
|
||||
code = "fd = IO.for_fd(#{w.fileno}); fd.autoclose = false; fd.write 'abc'; fd.close"
|
||||
pid = Process.spawn(ruby_cmd(code), @options)
|
||||
begin
|
||||
w.close
|
||||
|
|
Загрузка…
Ссылка в новой задаче