}
use Storable qw(store retrieve);
+use File::Spec;
print "1..8\n";
$Storable::forgive_me=1;
+my $devnull = File::Spec->devnull;
+
open(SAVEERR, ">&STDERR");
-open(STDERR, ">/dev/null") or
+open(STDERR, ">$devnull") or
( print SAVEERR "Unable to redirect STDERR: $!\n" and exit(1) );
eval {$result = store ($bad , 'store')};
print ((ref $ret->[1] eq 'SCALAR')?"ok $test\n":"not ok $test\n"); $test++;
-END { unlink 'store' }
+END { 1 while unlink 'store' }