1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-12-29 00:54:10 +00:00
parent 2076c2c3c4
commit c027f22443
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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