diff options
Diffstat (limited to 'test/gdbm/test_gdbm.rb')
-rw-r--r-- | test/gdbm/test_gdbm.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index 51a8bb3555..928efe9d90 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -28,7 +28,7 @@ if defined? GDBM SYSTEM = uname_s def setup - @tmpdir = Dir.tmpdir + @tmpdir = Dir.mktmpdir("tmptest_gdbm") @prefix = "tmptest_gdbm_#{$$}" @path = "#{@tmpdir}/#{@prefix}_" assert_instance_of(GDBM, @gdbm = GDBM.new(@path)) @@ -45,8 +45,7 @@ if defined? GDBM ObjectSpace.each_object(GDBM) do |obj| obj.close unless obj.closed? end - File.delete *Dir.glob("#{@tmpdir}/#{@prefix}*").to_a - p Dir.glob("#{@tmpdir}/#{@prefix}*") if $DEBUG + FileUtils.remove_entry_secure @tmpdir end def check_size(expect, gdbm=@gdbm) |