aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file_exhaustive.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-31 09:43:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-31 09:43:22 +0000
commitc14b815a5b1b0122a760a74278198fb8bb98b035 (patch)
tree43810e53173ca4db9efde07e398de85eeb36751d /test/ruby/test_file_exhaustive.rb
parentfe5757f3741f51484bf4c269056ab5d5aba04b46 (diff)
downloadruby-c14b815a5b1b0122a760a74278198fb8bb98b035.tar.gz
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
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r--test/ruby/test_file_exhaustive.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 9fe86816f9..53b867e56b 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -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