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

ruby-changes:15054

From: nobu <ko1@a...>
Date: Mon, 15 Mar 2010 07:39:36 +0900 (JST)
Subject: [ruby-changes:15054] Ruby:r26930 (trunk): * file.c (realpath_internal): regulate separators in prefix.

nobu	2010-03-15 07:39:25 +0900 (Mon, 15 Mar 2010)

  New Revision: 26930

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26930

  Log:
    * file.c (realpath_internal): regulate separators in prefix.
      [ruby-core:28653]

  Modified files:
    trunk/test/ruby/test_file.rb

Index: test/ruby/test_file.rb
===================================================================
--- test/ruby/test_file.rb	(revision 26929)
+++ test/ruby/test_file.rb	(revision 26930)
@@ -164,6 +164,10 @@
       tst = realdir.sub(/#{Regexp.escape(File::SEPARATOR)}/, '\0\0\0')
       assert_equal(realdir, File.realpath(tst))
       assert_equal(realdir, File.realpath(".", tst))
+      if File::ALT_SEPARATOR
+        bug2961 = '[ruby-core:28653]'
+        assert_equal(realdir, File.realpath(realdir.tr(File::SEPARATOR, File::ALT_SEPARATOR)), bug2961)
+      end
     }
   end
 

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

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