From 499120ad6ebb7a014798e9fe0c260eabf403caf4 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Aug 2015 14:49:07 +0000 Subject: 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 --- test/pathname/test_pathname.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/pathname') 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") } -- cgit v1.2.3