summaryrefslogtreecommitdiff
path: root/test/dbm/test_dbm.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-06 06:59:29 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-06 06:59:29 +0000
commit1ff15071d05f343206318b6f06b45c43dec814f1 (patch)
tree6be92f61d49968151802a7c343478f01e64d4ff3 /test/dbm/test_dbm.rb
parent0209f8d476470226103857db21f8f6967870a37b (diff)
See the string "GDBM version".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm/test_dbm.rb')
-rw-r--r--test/dbm/test_dbm.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 035d5df3853..e61ddbbe606 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -105,7 +105,7 @@ if defined? DBM
end
def test_s_open_no_create
- skip "dbm_open() is broken on libgdbm 1.8.0" if /1\.8\.0/ =~ DBM::VERSION
+ skip "dbm_open() is broken on libgdbm 1.8.0 or prior" if /GDBM version 1\.(?:[0-7]|8\.0)/ =~ DBM::VERSION
assert_nil(dbm = DBM.open("#{@tmpdir}/#{@prefix}", nil))
ensure
dbm.close if dbm
@@ -529,7 +529,7 @@ if defined? DBM
end
def test_writer_open_notexist
- skip "dbm_open() is broken on libgdbm 1.8.0" if /1\.8\.0/ =~ DBM::VERSION
+ skip "dbm_open() is broken on libgdbm 1.8.0 or prior" if /GDBM version 1\.(?:[0-7]|8\.0)/ =~ DBM::VERSION
assert_raise(Errno::ENOENT) {
DBM.open("#{@tmproot}/a", 0666, DBM::WRITER)
}