ruby-changes:44924
From: nobu <ko1@a...>
Date: Tue, 6 Dec 2016 16:46:19 +0900 (JST)
Subject: [ruby-changes:44924] nobu:r56997 (trunk): EPERM by symlink
nobu 2016-12-06 16:46:14 +0900 (Tue, 06 Dec 2016) New Revision: 56997 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56997 Log: EPERM by symlink * test/ruby/test_file.rb (test_realpath_encoding): EPERM can raise on cygwin. Modified files: trunk/test/ruby/test_file.rb Index: test/ruby/test_file.rb =================================================================== --- test/ruby/test_file.rb (revision 56996) +++ test/ruby/test_file.rb (revision 56997) @@ -271,7 +271,7 @@ class TestFile < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file.rb#L271 a = File.join(tmpdir, "x") begin File.symlink(tst, a) - rescue Errno::EACCES + rescue Errno::EACCES, Errno::EPERM skip "need privilege" end assert_equal(File.join(realdir, tst), File.realpath(a)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/