X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FAnyDBM_File.t;h=7bb1e49458b42c9caa1a68202f3d4098d6f4c126;hb=e7ec2331900cd22a50f48dd01fa18bd3026f6253;hp=231e3b8f8b38b2889600b35468d20717bf662d75;hpb=223eb2ffcf4494dce579fa08a12a08a8c05c34c6;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/AnyDBM_File.t b/lib/AnyDBM_File.t index 231e3b8..7bb1e49 100755 --- a/lib/AnyDBM_File.t +++ b/lib/AnyDBM_File.t @@ -43,7 +43,7 @@ SKIP: if ($Is_Dosish || $^O eq 'MacOS') ; ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime, $blksize,$blocks) = stat($Dfile); - ok(($mode & 0777) == 0640 , "File permissions"); + ok(($mode & 0777) == ($^O eq 'vos' ? 0750 : 0640) , "File permissions"); } while (($key,$value) = each(%h)) { @@ -135,7 +135,7 @@ ok($h{'foo'} eq '', "empty value"); my $compact = ''; -if ($AnyDBM_File::ISA[0] eq 'DB_File' && $DB_File::db_ver >= 2.004010) { +if ($AnyDBM_File::ISA[0] eq 'DB_File' && ($DB_File::db_ver >= 2.004010 && $DB_File::db_ver < 3.001)) { ($major, $minor, $patch) = ($DB_File::db_ver =~ /^(\d+)\.(\d\d\d)(\d\d\d)/) ; $major =~ s/^0+// ; $minor =~ s/^0+// ; @@ -147,7 +147,7 @@ if ($AnyDBM_File::ISA[0] eq 'DB_File' && $DB_File::db_ver >= 2.004010) { # 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. + # This feature returned with version 3.1 # }