diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-26 14:49:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-26 14:49:07 +0000 |
commit | 499120ad6ebb7a014798e9fe0c260eabf403caf4 (patch) | |
tree | 225e6d870b5e55d5e0cf411a811756a9872451c0 /test | |
parent | 91f5ee89ef1bf7e85a39a8630335bc2f2c73cc36 (diff) | |
download | ruby-499120ad6ebb7a014798e9fe0c260eabf403caf4.tar.gz |
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')
-rw-r--r-- | test/pathname/test_pathname.rb | 1 |
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") } |