summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/gdbm/test_gdbm.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 46b921b..c6c6c73 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -68,9 +68,7 @@ if defined? GDBM
begin
FileUtils.remove_entry_secure @tmpdir
rescue
- system("ls", "-lRa", @tmpdir)
- system("rmdir", @tmpdir)
- raise
+ system("fuser", *Dir.entries(@tmpdir).grep(/\A(?!\.\.?\z)/), chdir: @chdir)
else
return
end
@@ -595,6 +593,7 @@ if defined? GDBM
size2 = File.size(@path)
@gdbm.reorganize
+ @gdbm.sync
size3 = File.size(@path)
# p [size1, size2, size3]