diff options
Diffstat (limited to 'test/rdoc/test_rdoc_generator_darkfish.rb')
-rw-r--r-- | test/rdoc/test_rdoc_generator_darkfish.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb index ff21515dfd..1cefdbf658 100644 --- a/test/rdoc/test_rdoc_generator_darkfish.rb +++ b/test/rdoc/test_rdoc_generator_darkfish.rb @@ -219,8 +219,13 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase return end - assert_operator File.stat(filename).nlink, :>, 1, - "#{filename} is not hard-linked" + # This guard is quoted from test/ruby/test_file_exhaustive.rb + unless /emx|mswin|mingw/ =~ RUBY_PLATFORM + # on Windows, nlink is always 1. but this behavior will be changed + # in the future. + assert_operator File.stat(filename).nlink, :>, 1, + "#{filename} is not hard-linked" + end end end |