Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Re-add cleanup, since CLEANUP only works for dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
omega committed Oct 27, 2011
1 parent 288873a commit 7d6360b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Startsiden/Test/JavaScript.pm
Expand Up @@ -69,14 +69,15 @@ sub js_test {
push(@argv, $content);
} elsif ($content) {
# Need to write out the content to a temp-file
my ($fh, $file) = tempfile( DIR => 't/', SUFFIX => '.html', CLEANUP => 1 );
my ($fh, $file) = tempfile( DIR => 't/', SUFFIX => '.html' );
print $fh $content;
close $fh;
# now to pass that to the JS test
push(@argv, $file);
$f = $file;
}
_run_rhino(@argv);
unlink($f) if $f;
}

sub _run_psgi {
Expand Down

0 comments on commit 7d6360b

Please sign in to comment.