diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/rdoc/test_rdoc_generator_darkfish.rb | 9 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Wed Sep 25 15:37:02 2013 Koichi Sasada <ko1@atdot.net> + + * test/rdoc/test_rdoc_generator_darkfish.rb: add a guard for windows. + Wed Sep 25 09:53:11 2013 Eric Hodel <drbrain@segment7.net> * lib/rubygems: Fix CVE-2013-4363. Miscellaneous minor improvements. 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 |