ruby-changes:21907
From: naruse <ko1@a...>
Date: Tue, 6 Dec 2011 06:48:08 +0900 (JST)
Subject: [ruby-changes:21907] naruse:r33956 (trunk): Comment out tests which fails with GDBM-DBM compat mode.
naruse 2011-12-06 06:47:16 +0900 (Tue, 06 Dec 2011) New Revision: 33956 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33956 Log: Comment out tests which fails with GDBM-DBM compat mode. Modified files: trunk/test/dbm/test_dbm.rb Index: test/dbm/test_dbm.rb =================================================================== --- test/dbm/test_dbm.rb (revision 33955) +++ test/dbm/test_dbm.rb (revision 33956) @@ -103,11 +103,15 @@ 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 @@ } 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/