summaryrefslogtreecommitdiff
path: root/test/dbm
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-06 12:11:55 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-06 12:11:55 +0000
commit739b5e1e59810418b43ae95c6e5b4e5018db7143 (patch)
tree036f58969be773c5be5dced602a83bb277e95d09 /test/dbm
parent0e305c5a69cce0b19824a552ea0519c27c9302ae (diff)
merge revision(s) 33956,33960,33961,33962:
------------------------------------------------------------------------ r33956 | naruse | 2011-12-06 06:47:16 +0900 (Tue, 06 Dec 2011) | 1 line Comment out tests which fails with GDBM-DBM compat mode. ------------------------------------------------------------------------ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm')
-rw-r--r--test/dbm/test_dbm.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 14fd83899e..bc1b5ee27e 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -79,11 +79,14 @@ if defined? DBM
assert_equal(foo, true)
assert_nil(dbm.close)
end
+
def test_s_open_no_create
+ 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
end
+
def test_s_open_with_block
assert_equal(DBM.open("#{@tmpdir}/#{@prefix}") { :foo }, :foo)
end
@@ -509,6 +512,7 @@ if defined? DBM
end
def test_writer_open_notexist
+ 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)
}