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 | ce58200fb75655f87fba184f181a93a8165d2c62 (patch) | |
tree | df8f963182232bac92b2deb959a6e1426ee01e64 /test/gdbm/test_gdbm.rb | |
parent | 6d57a52685b398d4a61d3eb5dee2ff5e393c5c66 (diff) | |
download | ruby-ce58200fb75655f87fba184f181a93a8165d2c62.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/test_gdbm.rb')
-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 |