summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-03 08:18:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-03 08:18:52 +0000
commitce58200fb75655f87fba184f181a93a8165d2c62 (patch)
treedf8f963182232bac92b2deb959a6e1426ee01e64
parent6d57a52685b398d4a61d3eb5dee2ff5e393c5c66 (diff)
test_gdbm.rb: teardown
* test/gdbm/test_gdbm.rb (teardown): show tmpdir contents if failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/gdbm/test_gdbm.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 27645cd..4f379be 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -65,6 +65,13 @@ if defined? GDBM
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