1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

EPERM by symlink

* test/ruby/test_file.rb (test_realpath_encoding): EPERM can raise
  on cygwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-06 07:46:14 +00:00
parent 1f97dd562c
commit 2b5287d3e8

View file

@ -271,7 +271,7 @@ class TestFile < Test::Unit::TestCase
a = File.join(tmpdir, "x")
begin
File.symlink(tst, a)
rescue Errno::EACCES
rescue Errno::EACCES, Errno::EPERM
skip "need privilege"
end
assert_equal(File.join(realdir, tst), File.realpath(a))