ruby-changes:39612
From: nobu <ko1@a...>
Date: Wed, 26 Aug 2015 23:49:18 +0900 (JST)
Subject: [ruby-changes:39612] nobu:r51693 (trunk): test_pathname.rb: skip EACCES
nobu 2015-08-26 23:49:07 +0900 (Wed, 26 Aug 2015) New Revision: 51693 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51693 Log: test_pathname.rb: skip EACCES * test/pathname/test_pathname.rb (test_realpath): skip EACCES if changing mode of a directory may have no effect. Modified files: trunk/test/pathname/test_pathname.rb Index: test/pathname/test_pathname.rb =================================================================== --- test/pathname/test_pathname.rb (revision 51692) +++ test/pathname/test_pathname.rb (revision 51693) @@ -401,6 +401,7 @@ class TestPathname < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/pathname/test_pathname.rb#L401 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") } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/