use ExtUtils::MakeMaker;
use Config;
+use File::Spec;
my $e = $Config{'exe_ext'};
my $o = $Config{'obj_ext'};
"\nLIBS = $Config::Config{libs}\n"
}
+sub upupfile {
+ File::Spec->catfile(File::Spec->updir,
+ File::Spec->updir, $_[0]);
+}
+
sub postamble {
-'
-B$(OBJ_EXT) : defsubs.h
+ my $op_h = upupfile('op.h');
+ my $cop_h = upupfile('cop.h');
+"
+B\$(OBJ_EXT) : defsubs.h
-defsubs.h :: ../../op.h ../../cop.h
-'
+defsubs.h :: $op_h $cop_h
+"
}
}
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
( print SAVEERR "Unable to redirect STDERR: $!\n" and exit(1) );
print ((ref $ret->[1] eq 'SCALAR')?"ok $test\n":"not ok $test\n"); $test++;
-END { unlink 'store' }
+END { 1 while unlink 'store' }
print "not " if length $root->[1];
print "ok 14\n";
-END { unlink 'store', 'nstore' }
+END { 1 while unlink('store', 'nstore') }
print "not " unless $got eq $dumped;
print "ok 5\n";
-unlink 'store';
+1 while unlink 'store';
package FOO; @ISA = qw(Storable);
print "ok 20\n";
close OUT;
-END { unlink 'store' }
+END { 1 while unlink 'store' }