[前][次][番号順一覧][スレッド一覧]

ruby-changes:44922

From: nobu <ko1@a...>
Date: Tue, 6 Dec 2016 15:17:02 +0900 (JST)
Subject: [ruby-changes:44922] nobu:r56995 (trunk): EPERM by symlink

nobu	2016-12-06 15:16:57 +0900 (Tue, 06 Dec 2016)

  New Revision: 56995

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56995

  Log:
    EPERM by symlink
    
    * test/ruby/test_file_exhaustive.rb (symlinkfile): EPERM can raise
      on cygwin.

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 56994)
+++ test/ruby/test_file_exhaustive.rb	(revision 56995)
@@ -118,7 +118,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L118
     @symlinkfile = make_tmp_filename("symlinkfile")
     begin
       File.symlink(regular_file, @symlinkfile)
-    rescue NotImplementedError, Errno::EACCES
+    rescue NotImplementedError, Errno::EACCES, Errno::EPERM
       @symlinkfile = nil
     end
     @symlinkfile

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]