Skip to content

Commit 68e2a2e

Browse files
committed
skip EINVAL on unsupported platform
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent a24ccfe commit 68e2a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/ruby/core/file/shared/path.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
File.open(@dir, File::RDWR | File::TMPFILE) do |f|
7070
-> { f.send(@method) }.should raise_error(IOError)
7171
end
72-
rescue Errno::EOPNOTSUPP
72+
rescue Errno::EOPNOTSUPP, Errno::EINVAL
7373
# EOPNOTSUPP: no support from the filesystem
7474
1.should == 1
7575
end

0 commit comments

Comments
 (0)