From 20c91cafba7a5f1c212d500810d5675edab4cca3 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 6 Dec 2011 04:40:04 +0000 Subject: [PATCH] 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 --- test/dbm/test_dbm.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index 5e5414ba41..464194731d 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -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)