diff options
Diffstat (limited to 'test/dbm/test_dbm.rb')
-rw-r--r-- | test/dbm/test_dbm.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index 2a8113569d..5e5414ba41 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -103,11 +103,15 @@ if defined? DBM assert_equal(foo, true) assert_nil(dbm.close) end + +=begin GDBM returns nil def test_s_open_no_create assert_nil(dbm = DBM.open("#{@tmpdir}/#{@prefix}", nil)) ensure dbm.close if dbm end +=end + def test_s_open_with_block assert_equal(DBM.open("#{@tmpdir}/#{@prefix}") { :foo }, :foo) end @@ -525,11 +529,13 @@ if defined? DBM } end +=begin GDBM succeeds this def test_writer_open_notexist assert_raise(Errno::ENOENT) { DBM.open("#{@tmproot}/a", 0666, DBM::WRITER) } end +=end def test_wrcreat_open_notexist v = DBM.open("#{@tmproot}/a", 0666, DBM::WRCREAT) |