Now that we're using tempfiles, it no longer contains code to unlink the test
files, only a close. Inline the C<close BIG> into bye(), and remove the other
call to zap(), which was immediately after an explicit close of BIG.
(undef, my $big1) = tempfile(UNLINK => 1);
(undef, my $big2) = tempfile(UNLINK => 1);
-sub zap {
- close(BIG);
-}
-
sub bye {
- zap();
+ close(BIG);
exit(0);
}
print "# s2 = @s2\n";
-zap();
-
unless ($s1[7] == 1_000_003 && $s2[7] == 2_000_003 &&
$s1[11] == $s2[11] && $s1[12] == $s2[12] &&
$s1[12] > 0) {
my $big1 = tempfile();
my $big2 = tempfile();
-sub zap {
- close(BIG);
-}
-
sub bye {
- zap();
+ close(BIG);
exit(0);
}
print "# s2 = @s2\n";
-zap();
-
unless ($s1[7] == 1_000_003 && $s2[7] == 2_000_003 &&
$s1[11] == $s2[11] && $s1[12] == $s2[12] &&
$s1[12] > 0) {