ruby-changes:30961
From: ko1 <ko1@a...>
Date: Wed, 25 Sep 2013 15:37:42 +0900 (JST)
Subject: [ruby-changes:30961] ko1:r43040 (trunk): * test/rdoc/test_rdoc_generator_darkfish.rb: add a guard for windows.
ko1 2013-09-25 15:37:36 +0900 (Wed, 25 Sep 2013) New Revision: 43040 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43040 Log: * test/rdoc/test_rdoc_generator_darkfish.rb: add a guard for windows. Modified files: trunk/ChangeLog trunk/test/rdoc/test_rdoc_generator_darkfish.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 43039) +++ ChangeLog (revision 43040) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Sep 25 15:37:02 2013 Koichi Sasada <ko1@a...> + + * test/rdoc/test_rdoc_generator_darkfish.rb: add a guard for windows. + Wed Sep 25 09:53:11 2013 Eric Hodel <drbrain@s...> * lib/rubygems: Fix CVE-2013-4363. Miscellaneous minor improvements. Index: test/rdoc/test_rdoc_generator_darkfish.rb =================================================================== --- test/rdoc/test_rdoc_generator_darkfish.rb (revision 43039) +++ test/rdoc/test_rdoc_generator_darkfish.rb (revision 43040) @@ -219,8 +219,13 @@ class TestRDocGeneratorDarkfish < RDoc:: https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_generator_darkfish.rb#L219 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/