summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
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
commit2b5287d3e89a71db2405c14965fe142cd24b049a (patch)
tree78663078c5938f70979c67b4304eb42ba74d3f43 /test/ruby/test_file.rb
parent1f97dd562cb07e1e27541a6484acf0c1ad5eab0d (diff)
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/ruby/test_file.rb')
-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))