r53689 test

* test/ruby/test_file_exhaustive.rb (test_readlink_junction): test
  for r53689.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-01-29 09:32:57 +00:00
parent ec943ac668
commit 1e22638295

View file

@ -557,6 +557,15 @@ class TestFileExhaustive < Test::Unit::TestCase
end;
end
if NTFS
def test_readlink_junction
base = File.basename(nofile)
err = IO.popen(%W"cmd.exe /c mklink /j #{base} .", chdir: @dir, err: %i[child out], &:read)
skip err unless $?.success?
assert_equal(@dir, File.readlink(nofile))
end
end
def test_unlink
assert_equal(1, File.unlink(regular_file))
make_file("foo", regular_file)