From: WATANABE Hirofumi Date: 2002-07-09T15:53:35+09:00 Subject: Re: bdb "make test" failed under cygwin Hi, "Olonichev Sergei" writes: :Tahnk you very much, now all tests are ok except tests/marshal.rb. : :Here is the output: :... :FAILURES!!! :Test Results: : Run: 18/18(113 asserts) Failures: 0 Errors: 7 :Errors: 7 :tests/marshal.rb:187:in `test_11_unknown'(TestBtree): undefined local :variable o :r method `unknown' for # (NameError) : from tests/marshal.rb:299 :... Sorry for the typo. Try this again: diff -u1 tests.orig/btree.rb tests/btree.rb --- tests.orig/btree.rb 2002-03-16 22:36:05.000000000 +0900 +++ tests/btree.rb 2002-07-09 15:37:14.000000000 +0900 @@ -224,2 +224,3 @@ assert_equal("KLMTU", $bdb["yellow"], "") + $bdb.close end @@ -247,3 +248,4 @@ $bdb = nil - assert_kind_of(BDB::Btree, BDB::Unknown.open("tmp/aa", nil, "r"), "") + assert_kind_of(BDB::Btree, unknown = BDB::Unknown.open("tmp/aa", nil, "r"), "") + unknown.close end @@ -313,2 +315,3 @@ assert_equal(nil, $bdb.close, "") + $env.close end @@ -378,3 +381,3 @@ $hash.each_key do |k| - assert($bdb.key?(k), "") + assert(!!$bdb.key?(k), "") end diff -u1 tests.orig/hash.rb tests/hash.rb --- tests.orig/hash.rb 2002-03-16 22:39:50.000000000 +0900 +++ tests/hash.rb 2002-07-09 15:37:14.000000000 +0900 @@ -215,3 +215,4 @@ $bdb = nil - assert_kind_of(BDB::Hash, BDB::Unknown.open("tmp/aa", nil, "r"), "") + assert_kind_of(BDB::Hash, unknown = BDB::Unknown.open("tmp/aa", nil, "r"), "") + unknown.close end @@ -281,2 +282,4 @@ def test_17_hash_delete + assert_equal(nil, $bdb.close, "") + $env.close clean @@ -343,3 +346,3 @@ $hash.each_key do |k| - assert($bdb.key?(k), "") + assert(!!$bdb.key?(k), "") end diff -u1 tests.orig/marshal.rb tests/marshal.rb --- tests.orig/marshal.rb 2002-03-16 22:42:29.000000000 +0900 +++ tests/marshal.rb 2002-07-09 15:38:34.000000000 +0900 @@ -185,3 +185,4 @@ $bdb = nil - assert_kind_of(BDB::Btree, BDB::Unknown.open("tmp/aa", nil, "r", "marshal" => Marshal), "") + assert_kind_of(BDB::Btree, unknown = BDB::Unknown.open("tmp/aa", nil, "r", "marshal" => Marshal), "") + unknown.close end diff -u1 tests.orig/queue.rb tests/queue.rb --- tests.orig/queue.rb 2002-03-03 23:21:12.000000000 +0900 +++ tests/queue.rb 2002-07-09 15:37:14.000000000 +0900 @@ -168,3 +168,4 @@ $bdb = nil - assert_kind_of(BDB::Queue, BDB::Unknown.open("tmp/aa", nil, "r"), "") + assert_kind_of(BDB::Queue, unknown = BDB::Unknown.open("tmp/aa", nil, "r"), "") + unknown.close end diff -u1 tests.orig/recno.rb tests/recno.rb --- tests.orig/recno.rb 2002-03-03 23:23:12.000000000 +0900 +++ tests/recno.rb 2002-07-09 15:48:09.000000000 +0900 @@ -196,2 +196,3 @@ def test_12_env + $bdb.close Dir.foreach('tmp') do |x|