ruby-changes:54116
From: naruse <ko1@a...>
Date: Tue, 11 Dec 2018 19:55:14 +0900 (JST)
Subject: [ruby-changes:54116] naruse:r66337 (trunk): Same as r66334 add Errno::EISDIR
naruse 2018-12-11 19:55:07 +0900 (Tue, 11 Dec 2018) New Revision: 66337 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66337 Log: Same as r66334 add Errno::EISDIR Modified files: trunk/spec/ruby/core/file/open_spec.rb trunk/spec/ruby/core/file/shared/path.rb Index: spec/ruby/core/file/open_spec.rb =================================================================== --- spec/ruby/core/file/open_spec.rb (revision 66336) +++ spec/ruby/core/file/open_spec.rb (revision 66337) @@ -538,7 +538,7 @@ describe "File.open" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/open_spec.rb#L538 io.read.should == "ruby" Dir["#{dir}/*"].should == [] end - rescue Errno::EOPNOTSUPP, Errno::EINVAL + rescue Errno::EOPNOTSUPP, Errno::EINVAL, Errno::EISDIR # EOPNOTSUPP: no support from the filesystem # EINVAL: presumably bug in glibc 1.should == 1 Index: spec/ruby/core/file/shared/path.rb =================================================================== --- spec/ruby/core/file/shared/path.rb (revision 66336) +++ spec/ruby/core/file/shared/path.rb (revision 66337) @@ -69,7 +69,7 @@ describe :file_path, shared: true do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/shared/path.rb#L69 File.open(@dir, File::RDWR | File::TMPFILE) do |f| -> { f.send(@method) }.should raise_error(IOError) end - rescue Errno::EOPNOTSUPP, Errno::EINVAL + rescue Errno::EOPNOTSUPP, Errno::EINVAL, Errno::EISDIR # EOPNOTSUPP: no support from the filesystem 1.should == 1 end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/