summaryrefslogtreecommitdiff
path: root/test/pathname/test_pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathname/test_pathname.rb')
-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 94f0e3662f..53baa5cbc8 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")
}