From: Paul Marquess Date: Thu, 5 Aug 1999 09:33:14 +0000 (+0100) Subject: RE: [PATCH 5.005_60] anydbm.t + DB_File + Berkeley DB >= 2.4.10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f94c1b3744bdef51f4d5dbe83632ae7b1f26f46b;p=p5sagit%2Fp5-mst-13.2.git RE: [PATCH 5.005_60] anydbm.t + DB_File + Berkeley DB >= 2.4.10 To: jhi@iki.fi, paul.marquess@bt.com Cc: gsar@ActiveState.com, perl5-porters@perl.org Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB202D49B26@mbtlipnt02.btlabs.bt.co.uk> p4raw-id: //depot/cfgperl@3923 --- diff --git a/t/lib/anydbm.t b/t/lib/anydbm.t index a38b5f6..ed83a56 100755 --- a/t/lib/anydbm.t +++ b/t/lib/anydbm.t @@ -118,7 +118,30 @@ print ($size > 0 ? "ok 9\n" : "not ok 9\n"); print join(':',200..400) eq join(':',@foo) ? "ok 10\n" : "not ok 10\n"; print ($h{'foo'} eq '' ? "ok 11\n" : "not ok 11\n"); -print ($h{''} eq 'bar' ? "ok 12\n" : "not ok 12\n"); +if ($h{''} eq 'bar') { + print "ok 12\n" ; +} +else { + print "not ok 12\n" ; + if ($AnyDBM_File::ISA[0] eq 'DB_File' && $DB_File::db_ver >= 2.004010) { + ($major, $minor, $patch) = ($DB_File::db_ver =~ /^(\d+)\.(\d\d\d)(\d\d\d)/) ; + $major =~ s/^0+// ; + $minor =~ s/^0+// ; + $patch =~ s/^0+// ; + $compact = "$major.$minor.$patch" ; + + print STDERR <