From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <
1ff86f510809161335j73312da3v90fa6ef0cb8ac7c@mail.gmail.com>
Date: Tue, 16 Sep 2008 16:35:11 -0400
p4raw-id: //depot/perl@34377
# ---- Alias extensions
-my $tmpfile = tempfile();
my $alifile = File::Spec->catfile(File::Spec->updir, qw(lib unicore xyzzy_alias.pl));
my $i = 0;
-END { if ($tmpfile) { 1 while unlink $tmpfile; } }
my @prgs;
{ local $/ = undef;
for (@prgs) {
my ($code, $exp) = ((split m/\nEXPECT\n/), '$');
my ($prog, $fil) = ((split m/\nFILE\n/, $code), "");
+ my $tmpfile = tempfile();
open my $tmp, "> $tmpfile" or die "Could not open $tmpfile: $!";
print $tmp $prog, "\n";
close $tmp or die "Could not close $tmpfile: $!";
print "not ";
}
print "ok ", ++$i, "\n";
- 1 while unlink $tmpfile;
$fil or next;
1 while unlink $alifile;
}
my $Is_VMS = $^O eq 'VMS';
my $Is_MSWin32 = $^O eq 'MSWin32';
my $Is_NetWare = $^O eq 'NetWare';
-my $tmpfile = tempfile();
my $i = 0 ;
-END { if ($tmpfile) { 1 while unlink $tmpfile; } }
my @prgs = () ;
$prog = shift @files ;
$prog =~ s|\./abc|:abc|g if $^O eq 'MacOS';
}
+ my $tmpfile = tempfile();
open TEST, ">$tmpfile" or die "Could not open: $!";
print TEST $prog,"\n";
close TEST or die "Could not close: $!";
my $Is_MSWin32 = $^O eq 'MSWin32';
my $Is_NetWare = $^O eq 'NetWare';
my $Is_MacOS = $^O eq 'MacOS';
-my $tmpfile = tempfile();
my $i = 0 ;
-END { if ($tmpfile) { 1 while unlink $tmpfile} }
for (@prgs){
my $switch = "";
shift @files ;
$prog = shift @files ;
}
+ my $tmpfile = tempfile();
open TEST, ">$tmpfile";
print TEST $prog,"\n";
close TEST;