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

ruby-changes:6637

From: kazu <ko1@a...>
Date: Tue, 22 Jul 2008 11:17:30 +0900 (JST)
Subject: [ruby-changes:6637] Ruby:r18153 (trunk): * test/ruby/test_dir.rb: use realpath of tmpdir.

kazu	2008-07-22 11:17:15 +0900 (Tue, 22 Jul 2008)

  New Revision: 18153

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

  Log:
    * test/ruby/test_dir.rb: use realpath of tmpdir. [ruby-dev:35481]
    * test/ruby/test_process.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_dir.rb
    trunk/test/ruby/test_process.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18152)
+++ ChangeLog	(revision 18153)
@@ -1,3 +1,9 @@
+Tue Jul 22 11:05:08 2008  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* test/ruby/test_dir.rb: use realpath of tmpdir. [ruby-dev:35481]
+
+	* test/ruby/test_process.rb: ditto.
+
 Tue Jul 22 09:51:32 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* misc/ruby-mode.el: fix here-doc strings with inner quotes.  patches
Index: test/ruby/test_dir.rb
===================================================================
--- test/ruby/test_dir.rb	(revision 18152)
+++ test/ruby/test_dir.rb	(revision 18153)
@@ -2,11 +2,12 @@
 
 require 'tmpdir'
 require 'fileutils'
+require 'pathname'
 
 class TestDir < Test::Unit::TestCase
 
   def setup
-    @root = Dir.mktmpdir('__test_dir__')
+    @root = Pathname.new(Dir.mktmpdir('__test_dir__')).realpath.to_s
     @nodir = File.join(@root, "dummy")
     for i in ?a..?z
       if i.ord % 2 == 0
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 18152)
+++ test/ruby/test_process.rb	(revision 18153)
@@ -1,5 +1,6 @@
 require 'test/unit'
 require 'tmpdir'
+require 'pathname'
 require_relative 'envutil'
 
 class TestProcess < Test::Unit::TestCase
@@ -21,6 +22,7 @@
 
   def with_tmpchdir
     Dir.mktmpdir {|d|
+      d = Pathname.new(d).realpath.to_s
       Dir.chdir(d) {
         yield d
       }

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

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