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
@ -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…
x
Reference in New Issue
Block a user