mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
3581d76bbb
commit
52f61eaef7
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue