diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-20 08:17:53 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-20 08:17:53 +0000 |
| commit | 777af545552b1cfcb073580d217287df52c87d23 (patch) | |
| tree | 5143f75961c0b79afea08c2beb768c40b8847d73 /test/gdbm | |
| parent | 6ef0e081a1c288a39264242b972c64d33dc03536 (diff) | |
| download | ruby-777af545552b1cfcb073580d217287df52c87d23.tar.gz ruby-777af545552b1cfcb073580d217287df52c87d23.tar.xz ruby-777af545552b1cfcb073580d217287df52c87d23.zip | |
* ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?
* ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed?
* ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed?
* test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb
(teardown): close all db objects before deleting data files.
* win32/win32.{ch} (unlink): hook runtime function to change
file attribute before unlinking.
merge from 1.8, see [ruby-dev:26360]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/gdbm')
| -rw-r--r-- | test/gdbm/test_gdbm.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index 0b913e3a5..d2f3a945a 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -39,7 +39,9 @@ if defined? GDBM def teardown assert_nil(@gdbm.close) assert_nil(@gdbm_rdonly.close) - GC.start + ObjectSpace.each_object(GDBM) do |obj| + obj.close unless obj.closed? + end File.delete *Dir.glob("tmptest_gdbm*").to_a p Dir.glob("tmptest_gdbm*") if $DEBUG end |
