Skip to content

Commit 900de99

Browse files
committed
Import ruby trunk r43725
> 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.
1 parent b786fb3 commit 900de99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_rdoc_generator_darkfish.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ def assert_hard_link filename
214214

215215
begin
216216
FileUtils.ln src, dst
217+
nlink = File.stat(dst).nlink if File.identical? src, dst
217218
FileUtils.rm dst
219+
return if nlink == 1
218220
rescue SystemCallError
219221
return
220222
end

0 commit comments

Comments
 (0)