From f817a191324c71464703b880da5f82b20ac70b0d Mon Sep 17 00:00:00 2001 From: Peter Prymmer Date: Mon, 19 Nov 2001 06:34:22 -0500 Subject: [PATCH] VMS specific cleanup and strictness for tie_sdbm.t Message-ID: p4raw-id: //depot/perl@13101 --- lib/Memoize/t/tie_sdbm.t | 8 ++++++++ 1 file changed, 8 insertions(+) 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) = @_; -- 2.7.4