EPERM by symlink

* test/ruby/test_file_exhaustive.rb (symlinkfile): EPERM can raise
  on cygwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-06 06:16:57 +00:00
parent d802149be3
commit a8fff36406

View File

@ -118,7 +118,7 @@ class TestFileExhaustive < Test::Unit::TestCase
@symlinkfile = make_tmp_filename("symlinkfile") @symlinkfile = make_tmp_filename("symlinkfile")
begin begin
File.symlink(regular_file, @symlinkfile) File.symlink(regular_file, @symlinkfile)
rescue NotImplementedError, Errno::EACCES rescue NotImplementedError, Errno::EACCES, Errno::EPERM
@symlinkfile = nil @symlinkfile = nil
end end
@symlinkfile @symlinkfile