summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-17 04:58:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-17 04:58:50 +0000
commit713f360dcdd190c3b64a629987a19cc10f5d8dcc (patch)
treeb9d2bfa4ae2a83c81a653e2e34215d5b8d446979 /test
parent990c8759dbb85961b7cc9d4496d04a053e784570 (diff)
Already nlink is properly set on Windows
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_file_exhaustive.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index a65d859600c..7d4eeb6d59b 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -1521,11 +1521,7 @@ class TestFileExhaustive < Test::Unit::TestCase
assert_integer_or_nil(fs1.rdev_minor)
assert_integer(fs1.ino)
assert_integer(fs1.mode)
- unless /emx|mswin|mingw/ =~ RUBY_PLATFORM
- # on Windows, nlink is always 1. but this behavior will be changed
- # in the future.
- assert_equal(hardlinkfile ? 2 : 1, fs1.nlink)
- end
+ assert_equal(hardlinkfile ? 2 : 1, fs1.nlink)
assert_integer(fs1.uid)
assert_integer(fs1.gid)
assert_equal(3, fs1.size)