mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
11d2b16cfb
commit
a8e29fb206
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue