Skip to content

Commit

Permalink
* test/dbm/test_dbm.rb (test_dbmfile_suffix): check pag and dir is
Browse files Browse the repository at this point in the history
  empty for 4.3BSD ndbm.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Feb 19, 2012
1 parent 310c2ad commit 460bb8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Original file line Diff line number Diff line change
@@ -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> Sun Feb 19 13:08:34 2012 Narihiro Nakamura <authornari@gmail.com>


* gc.c (gc_clear_mark_on_sweep_slots): remove a unused variable. * gc.c (gc_clear_mark_on_sweep_slots): remove a unused variable.
Expand Down
2 changes: 2 additions & 0 deletions test/dbm/test_dbm.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def test_dbmfile_suffix
case DBM::VERSION case DBM::VERSION
when /\bNDBM\b/ when /\bNDBM\b/
assert_equal(%w[.dir .pag], suffixes) assert_equal(%w[.dir .pag], suffixes)
assert(File.zero?(pagname))
assert(File.zero?(dirname))
when /\bGDBM\b/ when /\bGDBM\b/
assert_equal(%w[.dir .pag], suffixes) assert_equal(%w[.dir .pag], suffixes)
pag = File.binread(pagname, 16) pag = File.binread(pagname, 16)
Expand Down

0 comments on commit 460bb8a

Please sign in to comment.