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

ruby-changes:26618

From: nobu <ko1@a...>
Date: Tue, 1 Jan 2013 23:35:12 +0900 (JST)
Subject: [ruby-changes:26618] nobu:r38669 (trunk): test_tmpdir.rb: remove tmpdir

nobu	2013-01-01 23:35:04 +0900 (Tue, 01 Jan 2013)

  New Revision: 38669

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

  Log:
    test_tmpdir.rb: remove tmpdir
    
    * test/test_tmpdir.rb (TestTmpdir#test_no_homedir): remove created
      tmpdir.

  Modified files:
    trunk/test/test_tmpdir.rb

Index: test/test_tmpdir.rb
===================================================================
--- test/test_tmpdir.rb	(revision 38668)
+++ test/test_tmpdir.rb	(revision 38669)
@@ -28,5 +28,6 @@ class TestTmpdir < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_tmpdir.rb#L28
     assert_match(/\A~/, File.basename(dir), bug7547)
   ensure
     ENV["HOME"] = home
+    Dir.rmdir(dir) if dir
   end
 end

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

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