From: Karen Etheridge Date: Thu, 10 Jul 2014 14:39:58 +0000 (-0700) Subject: fix test when B::C not installed X-Git-Tag: 0.06~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3aaa8d185625e11bd17ab442485267b095bc5b50;p=p5sagit%2FSub-Name.git fix test when B::C not installed --- diff --git a/t/RT96893_perlcc.t b/t/RT96893_perlcc.t index b875ed4..4e137fa 100644 --- a/t/RT96893_perlcc.t +++ b/t/RT96893_perlcc.t @@ -10,7 +10,7 @@ if ($@) { } my $f = "t/rt96893x.pl"; -open my $fh, ">", $f; END { unlink $f } +open my $fh, ">", $f; END { unlink $f if $f } print $fh 'use Sub::Name; subname("main::bar", sub{42}); print "ok 1\n";'; close $fh;