diff options
-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 |