ruby-changes:41628
From: nobu <ko1@a...>
Date: Sun, 31 Jan 2016 18:42:20 +0900 (JST)
Subject: [ruby-changes:41628] nobu:r53702 (trunk): r53688 test
nobu 2016-01-31 18:43:22 +0900 (Sun, 31 Jan 2016) New Revision: 53702 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53702 Log: r53688 test * test/ruby/test_file_exhaustive.rb (test_realpath_mount_point): test for r53688. Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 53701) +++ test/ruby/test_file_exhaustive.rb (revision 53702) @@ -574,6 +574,15 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L574 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/