summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/dbm/test_dbm.rb2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c31af98..29351f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index bbdd32c..6bc63bc 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -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)