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

r53688 test

* test/ruby/test_file_exhaustive.rb (test_realpath_mount_point):
  test for r53688.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-01-31 09:43:22 +00:00
parent c2e998d6a3
commit 28a7199ae0

View file

@ -574,6 +574,15 @@ class TestFileExhaustive < Test::Unit::TestCase
skip err unless $?.success?
assert_equal(@dir, File.readlink(nofile))
end
def test_realpath_mount_point
vol = IO.popen(["mountvol", DRIVE, "/l"], &:read).strip
Dir.mkdir(mnt = File.join(@dir, mntpnt = "mntpnt"))
system("mountvol", mntpnt, vol, chdir: @dir)
assert_equal(mnt, File.realpath(mnt))
ensure
system("mountvol", mntpnt, "/d", chdir: @dir)
end
end
def test_unlink