From 52f61eaef7cb1d022db1d67c4e0bafaf7bf7fea6 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 5 Dec 2011 21:47:16 +0000 Subject: 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 --- test/dbm/test_dbm.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/dbm/test_dbm.rb') diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index 2a8113569d..5e5414ba41 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -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) -- cgit v1.2.3