summaryrefslogtreecommitdiff
path: root/test/dbm
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-05 21:47:16 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-05 21:47:16 +0000
commit52f61eaef7cb1d022db1d67c4e0bafaf7bf7fea6 (patch)
tree92c04430236911def80b6fc6ba3e1f1b9a9738c6 /test/dbm
parent3581d76bbbd06f147ce08fb3047c704900af9198 (diff)
Comment out tests which fails with GDBM-DBM compat mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm')
-rw-r--r--test/dbm/test_dbm.rb6
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)