[前][次][番号順一覧][スレッド一覧]

ruby-changes:21911

From: naruse <ko1@a...>
Date: Tue, 6 Dec 2011 13:40:57 +0900 (JST)
Subject: [ruby-changes:21911] naruse:r33960 (trunk): Skip tests when the lib is with gdbm 1.8.0.

naruse	2011-12-06 13:40:04 +0900 (Tue, 06 Dec 2011)

  New Revision: 33960

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33960

  Log:
    Skip tests when the lib is with gdbm 1.8.0.

  Modified files:
    trunk/test/dbm/test_dbm.rb

Index: test/dbm/test_dbm.rb
===================================================================
--- test/dbm/test_dbm.rb	(revision 33959)
+++ test/dbm/test_dbm.rb	(revision 33960)
@@ -104,13 +104,12 @@
       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 @@
       }
     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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]