diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-03 08:18:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-03 08:18:52 +0000 |
commit | 8026b55f9d3958865edb7c5dfcf53a80fb833b69 (patch) | |
tree | df8f963182232bac92b2deb959a6e1426ee01e64 /test/gdbm | |
parent | 6f4716da7090a2557b0b5f2bd66af37177bfb55c (diff) | |
download | ruby-8026b55f9d3958865edb7c5dfcf53a80fb833b69.tar.gz |
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
Diffstat (limited to 'test/gdbm')
-rw-r--r-- | test/gdbm/test_gdbm.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index 27645cddd2..4f379be612 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 |