1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/dbm/test_dbm.rb (test_dbmfile_suffix): check pag and dir is

empty for 4.3BSD ndbm.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-02-19 08:08:37 +00:00
parent 310c2adf1b
commit 460bb8a829
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Feb 19 17:07:27 2012 Tanaka Akira <akr@fsij.org>
* test/dbm/test_dbm.rb (test_dbmfile_suffix): check pag and dir is
empty for 4.3BSD ndbm.
Sun Feb 19 13:08:34 2012 Narihiro Nakamura <authornari@gmail.com>
* gc.c (gc_clear_mark_on_sweep_slots): remove a unused variable.

View file

@ -106,6 +106,8 @@ if defined? DBM
case DBM::VERSION
when /\bNDBM\b/
assert_equal(%w[.dir .pag], suffixes)
assert(File.zero?(pagname))
assert(File.zero?(dirname))
when /\bGDBM\b/
assert_equal(%w[.dir .pag], suffixes)
pag = File.binread(pagname, 16)