mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
skip EINVAL on unsupported platform
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a24ccfe6af
commit
68e2a2e5ce
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ describe :file_path, shared: true do
|
||||||
File.open(@dir, File::RDWR | File::TMPFILE) do |f|
|
File.open(@dir, File::RDWR | File::TMPFILE) do |f|
|
||||||
-> { f.send(@method) }.should raise_error(IOError)
|
-> { f.send(@method) }.should raise_error(IOError)
|
||||||
end
|
end
|
||||||
rescue Errno::EOPNOTSUPP
|
rescue Errno::EOPNOTSUPP, Errno::EINVAL
|
||||||
# EOPNOTSUPP: no support from the filesystem
|
# EOPNOTSUPP: no support from the filesystem
|
||||||
1.should == 1
|
1.should == 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue