зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
2f49f5ee0b
Коммит
20c91cafba
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче