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

ruby-changes:40351

From: nobu <ko1@a...>
Date: Tue, 3 Nov 2015 17:18:58 +0900 (JST)
Subject: [ruby-changes:40351] nobu:r52432 (trunk): test_gdbm.rb: teardown

nobu	2015-11-03 17:18:52 +0900 (Tue, 03 Nov 2015)

  New Revision: 52432

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

  Log:
    test_gdbm.rb: teardown
    
    * test/gdbm/test_gdbm.rb (teardown): show tmpdir contents if
      failed.

  Modified files:
    trunk/test/gdbm/test_gdbm.rb
Index: test/gdbm/test_gdbm.rb
===================================================================
--- test/gdbm/test_gdbm.rb	(revision 52431)
+++ test/gdbm/test_gdbm.rb	(revision 52432)
@@ -65,6 +65,13 @@ if defined? GDBM https://github.com/ruby/ruby/blob/trunk/test/gdbm/test_gdbm.rb#L65
       ObjectSpace.each_object(GDBM) do |obj|
         obj.close unless obj.closed?
       end
+      begin
+        FileUtils.remove_entry_secure @tmpdir
+      rescue
+        system("ls", "-lR", @tmpdir)
+      else
+        return
+      end
       FileUtils.remove_entry_secure @tmpdir
     end
 

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

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