зеркало из https://github.com/github/ruby.git
Same as r66334 add Errno::EISDIR
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0046a4a519
Коммит
23ff1abc9c
|
@ -538,7 +538,7 @@ describe "File.open" do
|
|||
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
|
||||
|
|
|
@ -69,7 +69,7 @@ describe :file_path, shared: true do
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче