ruby-changes:54408
From: eregon <ko1@a...>
Date: Sat, 29 Dec 2018 09:54:15 +0900 (JST)
Subject: [ruby-changes:54408] eregon:r66623 (trunk): Update to ruby/spec@c8b36c4
eregon 2018-12-29 09:54:10 +0900 (Sat, 29 Dec 2018) New Revision: 66623 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66623 Log: Update to ruby/spec@c8b36c4 Modified files: trunk/spec/ruby/core/dir/shared/open.rb trunk/spec/ruby/core/process/spawn_spec.rb Index: spec/ruby/core/process/spawn_spec.rb =================================================================== --- spec/ruby/core/process/spawn_spec.rb (revision 66622) +++ spec/ruby/core/process/spawn_spec.rb (revision 66623) @@ -582,7 +582,7 @@ describe "Process.spawn" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/spawn_spec.rb#L582 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 Index: spec/ruby/core/dir/shared/open.rb =================================================================== --- spec/ruby/core/dir/shared/open.rb (revision 66622) +++ spec/ruby/core/dir/shared/open.rb (revision 66623) @@ -65,6 +65,7 @@ describe :dir_open, shared: true do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/dir/shared/open.rb#L65 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/