summaryrefslogtreecommitdiff
path: root/test/dbm
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-06 04:40:04 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-06 04:40:04 +0000
commit20c91cafba7a5f1c212d500810d5675edab4cca3 (patch)
tree2978d5a32672a6ee7c7a0fe61fc0d988c0dfcc43 /test/dbm
parent2f49f5ee0b257a2cb52b66ba36ab65bb2fa4641a (diff)
Skip tests when the lib is with gdbm 1.8.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm')
-rw-r--r--test/dbm/test_dbm.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 5e5414b..4641947 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -104,13 +104,12 @@ if defined? DBM
assert_nil(dbm.close)
end
-=begin GDBM returns nil
def test_s_open_no_create
+ skip "gdbm_open(GDBM_WRITER) is broken on libgdbm 1.8.0" if /1\.8\.0/ =~ GDBM::VERSION
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)
@@ -529,13 +528,12 @@ if defined? DBM
}
end
-=begin GDBM succeeds this
def test_writer_open_notexist
+ skip "gdbm_open(GDBM_WRITER) is broken on libgdbm 1.8.0" if /1\.8\.0/ =~ GDBM::VERSION
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)