[前][次][番号順一覧][スレッド一覧]

ruby-changes:41616

From: nobu <ko1@a...>
Date: Fri, 29 Jan 2016 18:32:00 +0900 (JST)
Subject: [ruby-changes:41616] nobu:r53690 (trunk): r53689 test

nobu	2016-01-29 18:32:57 +0900 (Fri, 29 Jan 2016)

  New Revision: 53690

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53690

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

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 53689)
+++ test/ruby/test_file_exhaustive.rb	(revision 53690)
@@ -557,6 +557,15 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L557
     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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]