summaryrefslogtreecommitdiff
path: root/test/pathname
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 14:49:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-26 14:49:07 +0000
commit499120ad6ebb7a014798e9fe0c260eabf403caf4 (patch)
tree225e6d870b5e55d5e0cf411a811756a9872451c0 /test/pathname
parent91f5ee89ef1bf7e85a39a8630335bc2f2c73cc36 (diff)
test_pathname.rb: skip EACCES
* test/pathname/test_pathname.rb (test_realpath): skip EACCES if changing mode of a directory may have no effect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 94f0e36..53baa5c 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -401,6 +401,7 @@ class TestPathname < Test::Unit::TestCase
File.symlink("f/g", "h")
assert_equal("#{dir}/f/g", realpath("h"))
File.chmod(0000, "f")
+ next if File.readable?("f")
assert_raise(Errno::EACCES) { realpath("h") }
File.chmod(0755, "f")
}