mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
6d57a52685
commit
ce58200fb7
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue