aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-06 07:46:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-06 07:46:14 +0000
commit076dd1c6e1eaa1c3726450467678fb954ed7a42a (patch)
tree78663078c5938f70979c67b4304eb42ba74d3f43 /test
parent1dd34a5cfdc54bf4a3b2fedebf00781bf221f2fb (diff)
downloadruby-076dd1c6e1eaa1c3726450467678fb954ed7a42a.tar.gz
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index cdbc19c0d4..58a4240391 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -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))