summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-25 06:37:36 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-25 06:37:36 +0000
commitd12d47c4beba330862f492fc556b862436652df2 (patch)
tree814a1e3728f47ac7c89452a7b4d5b1c2e7f4cb50 /test/rdoc
parent8eb39185810a59ad8d3aa874ba8f6c9a7b0949ac (diff)
* 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
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb9
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