diff options
Diffstat (limited to 'test/dbm')
-rw-r--r-- | test/dbm/test_dbm.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index c0d3bb42bf..bc48831cdb 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -28,7 +28,7 @@ if defined? DBM SYSTEM = uname_s def setup - @tmpdir = Dir.tmpdir + @tmpdir = Dir.mktmpdir("tmptest_dbm") @prefix = "tmptest_dbm_#{$$}" @path = "#{@tmpdir}/#{@prefix}_" assert_instance_of(DBM, @dbm = DBM.new(@path)) @@ -48,8 +48,7 @@ if defined? DBM ObjectSpace.each_object(DBM) 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, dbm=@dbm) |