From: Peter Prymmer Date: Mon, 19 Nov 2001 11:34:22 +0000 (-0500) Subject: VMS specific cleanup and strictness for tie_sdbm.t X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f817a191324c71464703b880da5f82b20ac70b0d;p=p5sagit%2Fp5-mst-13.2.git VMS specific cleanup and strictness for tie_sdbm.t Message-ID: p4raw-id: //depot/perl@13101 --- diff --git a/lib/Memoize/t/tie_sdbm.t b/lib/Memoize/t/tie_sdbm.t index 3da203c..ddb6a86 100644 --- a/lib/Memoize/t/tie_sdbm.t +++ b/lib/Memoize/t/tie_sdbm.t @@ -32,6 +32,8 @@ if ($@) { print "1..4\n"; +my $tmpdir; +my $file; if (eval {require File::Spec::Functions}) { File::Spec::Functions->import('tmpdir', 'catfile'); $tmpdir = tmpdir(); @@ -41,8 +43,14 @@ if (eval {require File::Spec::Functions}) { } $file = catfile($tmpdir, "md$$"); 1 while unlink $file, "$file.dir", "$file.pag"; +if ($^O eq 'VMS') { + 1 while unlink "${file}.sdbm_dir"; +} tryout('Memoize::SDBM_File', $file, 1); # Test 1..4 1 while unlink $file, "$file.dir", "$file.pag"; +if ($^O eq 'VMS') { + 1 while unlink "${file}.sdbm_dir"; +} sub tryout { my ($tiepack, $file, $testno) = @_;