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

ruby-changes:31646

From: nobu <ko1@a...>
Date: Tue, 19 Nov 2013 23:34:24 +0900 (JST)
Subject: [ruby-changes:31646] nobu:r43725 (trunk): test_rdoc_generator_darkfish.rb: ignore nlink is not provided

nobu	2013-11-19 23:34:20 +0900 (Tue, 19 Nov 2013)

  New Revision: 43725

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43725

  Log:
    test_rdoc_generator_darkfish.rb: ignore nlink is not provided
    
    * test/rdoc/test_rdoc_generator_darkfish.rb (assert_hard_link): makes
      no sense on platforms where link count is not provided.

  Modified files:
    trunk/test/rdoc/test_rdoc_generator_darkfish.rb
Index: test/rdoc/test_rdoc_generator_darkfish.rb
===================================================================
--- test/rdoc/test_rdoc_generator_darkfish.rb	(revision 43724)
+++ test/rdoc/test_rdoc_generator_darkfish.rb	(revision 43725)
@@ -214,7 +214,9 @@ class TestRDocGeneratorDarkfish < RDoc:: https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_generator_darkfish.rb#L214
 
     begin
       FileUtils.ln src, dst
+      nlink = File.stat(dst).nlink if File.identical? src, dst
       FileUtils.rm dst
+      return if nlink == 1
     rescue SystemCallError
       return
     end

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

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