diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-19 14:34:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-19 14:34:20 +0000 |
commit | a8e29fb206cbd96484d5d043c6199c502b9a479e (patch) | |
tree | 42ac79810daed90e3e0bd1993a424e09fa91f078 | |
parent | 11d2b16cfb857fb0d473642730f7ab2275e85ebb (diff) | |
download | ruby-a8e29fb206cbd96484d5d043c6199c502b9a479e.tar.gz |
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
-rw-r--r-- | test/rdoc/test_rdoc_generator_darkfish.rb | 2 |
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 |