summaryrefslogtreecommitdiff
path: root/t/lib/anydbm.t
diff options
context:
space:
mode:
authorPaul Marquess <paul.marquess@btinternet.com>1999-08-05 10:33:14 +0100
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-05 09:16:57 +0000
commitf94c1b3744bdef51f4d5dbe83632ae7b1f26f46b (patch)
treea561c61f47a36611de7710a2ef49ce28ecb94c04 /t/lib/anydbm.t
parent2cdd06f700e22243a0f92357f562eb4b13b7197a (diff)
downloadperl-f94c1b3744bdef51f4d5dbe83632ae7b1f26f46b.tar.gz
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
Diffstat (limited to 't/lib/anydbm.t')
-rwxr-xr-xt/lib/anydbm.t25
1 files changed, 24 insertions, 1 deletions
diff --git a/t/lib/anydbm.t b/t/lib/anydbm.t
index a38b5f680e..ed83a56222 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 <<EOM ;
+#
+# anydbm.t test 12 will fail when AnyDBM_File uses the combination of
+# DB_File and Berkeley DB 2.4.10 (or greater).
+# You are using DB_File $DB_File::VERSION and Berkeley DB $compact
+#
+# Berkeley DB 2 from version 2.4.10 onwards does not allow null keys.
+# This feature will be reenabled in a future version of Berkeley DB.
+#
+EOM
+ }
+}
untie %h;
if ($^O eq 'VMS') {