summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-03 02:36:02 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-03 02:36:02 +0000
commit206483f1ebeef33f7da74d5c167b3fd37bbf2d6b (patch)
treeb5943b621ec285cacbb12e4de858f0ff6ddbc95a
parent14455d6cc193f1e4316f87b9dbe258db24ceb714 (diff)
downloadperl-206483f1ebeef33f7da74d5c167b3fd37bbf2d6b.tar.gz
skip test if db doesn't have null key support
p4raw-id: //depot/perl@5470
-rwxr-xr-xt/lib/anydbm.t24
1 files changed, 12 insertions, 12 deletions
diff --git a/t/lib/anydbm.t b/t/lib/anydbm.t
index 9efe5e9f3e..e38c7e7860 100755
--- a/t/lib/anydbm.t
+++ b/t/lib/anydbm.t
@@ -122,24 +122,24 @@ 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
+ #
+ # 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.
+ #
+ print "ok 12 # skipped: db v$compact, no null key support\n" ;
+ }
+ else {
+ print "not ok 12\n" ;
}
}