diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 02:21:59 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-30 02:21:59 +0000 |
commit | 68e2a2e5cea3204f935988a8b3b49d54e8dc43be (patch) | |
tree | 98c842f9880e9bdfebc927949a0a84a89e62bba6 /spec | |
parent | a24ccfe6afd031fae389ff6b93dd38aa953d4311 (diff) |
skip EINVAL on unsupported platform
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/file/shared/path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/shared/path.rb b/spec/ruby/core/file/shared/path.rb index 3f2fccafa9..772272909c 100644 --- a/spec/ruby/core/file/shared/path.rb +++ b/spec/ruby/core/file/shared/path.rb @@ -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 + rescue Errno::EOPNOTSUPP, Errno::EINVAL # EOPNOTSUPP: no support from the filesystem 1.should == 1 end |