1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/rdoc/test_rdoc_generator_darkfish.rb: add a guard for windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-09-25 06:37:36 +00:00
parent 8eb3918581
commit d12d47c4be
2 changed files with 11 additions and 2 deletions

View file

@ -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.

View file

@ -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