summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-19 14:34:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-19 14:34:20 +0000
commita8e29fb206cbd96484d5d043c6199c502b9a479e (patch)
tree42ac79810daed90e3e0bd1993a424e09fa91f078 /test/rdoc
parent11d2b16cfb857fb0d473642730f7ab2275e85ebb (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb
index ff21515dfd..79c52f0805 100644
--- a/test/rdoc/test_rdoc_generator_darkfish.rb
+++ b/test/rdoc/test_rdoc_generator_darkfish.rb
@@ -214,7 +214,9 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase
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